From: Akinori MUSHA Date: 2000-10-05T17:36:43+09:00 Subject: [ruby-talk:5302] Re: RFC: Enumerable#every(n) At Thu, 5 Oct 2000 08:20:50 +0900, Aleksi Niemel� wrote: > Subject: [ruby-talk:02376] Iterator into array > From: Dave Thomas > Date: 07 Apr 2000 11:12:52 -0500 > > http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/2376 > > Well, can't say if my extension was for any good, as it has been already > bashed on that thread :)... I wonder why noone had answered Dave's question. You can just say result = iteratorMethod.to_a to mean the following. result = [] iteratorMethod { |i| result << i } -- / /__ __ / ) ) ) ) / Akinori -Aki- MUSHA aka / (_ / ( (__( @ idaemons.org / FreeBSD.org "We're only at home when we're on the run, on the wing, on the fly"