From: Thomas Hafner Date: 2007-02-06T07:15:05+09:00 Subject: Re: Proc vs lambda vs proc "Patrick Fernie" wrote/schrieb <240187340702050729x57c3c6bcp1431daa7967ce49d@mail.gmail.com>: > I found the following: > http://innig.net/software/ruby/closures-in-ruby.rb to be an > interesting read on the different flavors of closures in ruby; Very interesting, indeed. BTW, in article I did the same, i.e. defining a data structure containing *all* of the Fibonacci numbers: s = Stream.delay { Stream.cons(0, Stream.delay { Stream.cons(1, Stream.map(lambda{|x,y| x+y}, s, s.cdr))})} (It uses methods posted in article <9oib84-sf6.ln1@faun.hafner.nl.eu.org>.) Regards Thomas