[Haskell-cafe] length defined with foldr

PR Stanley prstanley at ntlworld.com
Wed Sep 19 23:41:58 EDT 2007


>>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 at kf8nh.com
>>system administrator [openafs,heimdal,too many hats] allbery at ece.cmu.edu
>>electrical and computer engineering, carnegie mellon university    KF8NH



More information about the Haskell-Cafe mailing list