Personal tools

Talk:Haskell Quiz/PP Pascal/Solution Ltriant

From HaskellWiki

Jump to: navigation, search
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