From: Roger Pack Date: 2009-11-29T13:45:46+09:00 Subject: Re: closures Burlsm wrote: > hi > > i'm having a little trouble with closures and i'd like to know what > the equivalent code for the canonical make-adder procedure would in > ruby, > > in scheme it would be like > > (define (make-adder n) > (lambda (x) (+ x n)) > > thanks in advance I noticed this link describing some scheme style closures in ruby http://innig.net/software/ruby/closures-in-ruby.rb in the ruby talk faq the other day. -r -- Posted via http://www.ruby-forum.com/.