Talk:Haskell Quiz/PP Pascal/Solution Ltriant
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
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