Re: [Haskell-cafe] length defined with foldr

19 Sep
2007
19 Sep
'07
11:41 p.m.
Still fighting with the botched OCR? I am, as a matter of fact! Is that okay with you? *smile*
length = foldr (\_ n -> 1 + n) 0
-- brandon s. allbery [solaris,freebsd,perl,pugs,haskell] allbery@kf8nh.com system administrator [openafs,heimdal,too many hats] allbery@ece.cmu.edu electrical and computer engineering, carnegie mellon university KF8NH
6457
Age (days ago)
6457
Last active (days ago)
0 comments
1 participants
participants (1)
-
PR Stanley