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