[Haskell-cafe] length defined with foldr
PR Stanley
prstanley at ntlworld.com
Wed Sep 19 23:17:54 EDT 2007
Hi
length = foldr (. n . 1 + n) 0
Any idea how to define length with foldr. The above definition
doesn't make much sense.
Many thanks, Paul
More information about the Haskell-Cafe
mailing list