From: James Edward Gray II Date: 2004-08-27T23:12:16+09:00 Subject: Re: Splitting an Array On Aug 27, 2004, at 9:05 AM, ts wrote: >>>>>> "J" == James Edward Gray writes: > > J> I have and Array and I need to iterate over it, finding a subset of > the > J> elements it contains. I want that subset in a new Array and I want > the > J> original Array altered so it no longer contains the subset. > > You can also use Enum#partition > > a, b = a.partition { |e| e <= 1} Exactly what I was looking for. Thank you. James Edward Gray II