Agreed. But it would be a stronger example if it were something that couldn't be done easily without a new language feature. On 1 oct. 08, at 11:26, Brian Candler wrote: > Joe Wöìfel 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/. >