
9 Mar
2010
9 Mar
'10
3:33 p.m.
However, the solution given uses notation that confuses my little mind. Can someone point me to a good resource on this notation? myLength :: [a] -> Int myLength = foldr (\x n -> n + 1) 0
"\x n -> n + 1" in the above is an anonymous function. More at: http://www.haskell.org/haskellwiki/Anonymous_function http://www.haskell.org/haskellwiki/Lambda_abstraction Regards, Rahul