From: Jay Anderson Date: 2009-07-14T13:00:51+09:00 Subject: Re: Fibonacci numbers - newbie question. Todd Benson wrote: > 2009/7/13 J�rg W Mittag : >> >> Zipping an infinite list with itself to produce itself ... brilliant. > > Ha! That is just cool. > > Todd Of course it can be sort of translated into ruby (see attached for lazy list implementation): FIBS = LL[0, LL[1, lambda{FIBS.zip_with(FIBS.tail, &:+)}]] -----Jay Attachments: http://www.ruby-forum.com/attachment/3876/lazy.rb -- Posted via http://www.ruby-forum.com/.