Personal tools

Talk:Haskell Quiz/PP Pascal/Solution Ltriant

From HaskellWiki

Revision as of 04:01, 4 November 2006 by Ltriant (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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