From: Roger Pack Date: 2008-10-08T08:43:37+09:00 Subject: Re: ruby wish-list Mikael Høilund wrote: > Perhaps a bit controversial, but I'd like to see a keyword for the > �current block� as a way to refer to the Proc instance created inside > that block. That would allow for recursive anonymous blocks like: > > [[1,2,[3]],[[[5],6],7],8].map { |e| > Array === e ? e.map(¤t_block) : e.to_s > } Appears maybe possible [Y combinator in Ruby]: http://53cr.com/blog/2008/10/recursive-lambdas-in-ruby/ Cheers. -=R -- Posted via http://www.ruby-forum.com/.