[Haskell-cafe] About Fibonacci again...
nominolo at googlemail.com
Thu Nov 8 09:02:05 EST 2007
On Thu, 2007-11-08 at 00:56 +0100, jerzy.karczmarczuk at info.unicaen.fr
> Don't shoot me...
> The last exchange with Andrew Bromage made me recall a homework which was
> given to some students by a particularly nasty teacher I happen to know.
> The question is to generate the whole infinite Rabbit Sequence in one
> shot (co-recursive, selbstverständlich).
> The Rabbit Sequence:
> may be obtained in two ways.
> 1. Begin with one *young* rabbit: 0.
> 2. In one unit of time a young rabbit grows, becomes *old*: 1.
> 3. In one unit of time an old rabbit has an offspring, transmutes into [1,0]
> (Yes, the rewriting order is meaningful).
Don't rabbits ever die?
Guess they just become zombie rabbits ... 
But that still doesn't work, because those would then eat all those
other rabbits ...
More information about the Haskell-Cafe