Talk:Haskell Quiz/PP Pascal/Solution Ltriant

From HaskellWiki
Jump to navigation Jump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.
mylength :: [a] -> Integer
mylength = toInteger . length

is the same as :

mylength :: [a] -> Integer
mylength = genericLength

Dammit, I knew there had to be a builtin function for it :( -Luke