Haskell Noob
Monday, May 30, 2011
Length of a list using length function
--Q4
lgn::[Int]->Int
lgn [] =0
lgn xs = length xs
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment