[Haskell-cafe] About Fibonacci again...

Yitzchak Gale gale at sefer.org
Thu Nov 8 07:21:44 EST 2007


rabbit = 1 : concatMap ((0:) . flip replicate 1 . (1+)) rabbit

> This nasty acquaintance of mine...
> demanded the solution (in Haskell) as a one-liner.

It wasn't you yourself, was it?
No. Please, tell me it isn't so.

Regards,
Yitz


More information about the Haskell-Cafe mailing list