At Thu, 5 Oct 2000 08:20:50 +0900,
Aleksi Niemel? <aleksi.niemela / cinnober.com> 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"