From: Brian Candler Date: 2008-10-02T00:26:18+09:00 Subject: Re: ruby1.9 block scope Joe Wę—¦lfel wrote: > On 1 oct. 08, at 04:18, Brian Candler wrote: > >> end > res = a.find { |e| e =~ /foo/ } Yes I know. That's why I called it "myfind". I made a simple concrete example of a pattern: iterate doing each, assign something during the iteration, use the assigned value outside of the iteration. Enumerable#find by itself is not sufficient for all programming needs. -- Posted via http://www.ruby-forum.com/.