
8 Nov
2007
8 Nov
'07
4:24 a.m.
On 11/8/07, jerzy.karczmarczuk@info.unicaen.fr
Would somebody try to solve it, before I unveil the solution? It isn't difficult.
*** SPOILER WARNING *** Here's my attempt, which I wrote without peeking: let fibs' = 1 : 2 : zipWith (+) fibs' (tail fibs') rabbits = 1 : 0 : (fibs' >>= flip take rabbits) It can be golfed down to a single line without difficulty. Is there a nicer solution? Stuart