On (2008-04-12 05:31 +0900), ara.t.howard wrote:

> think about that
>
>   [0, 1, 2, 3].reject!{|i| i.odd}

I was more thinking something along the lines

foo = {}
('a'..'z').each {l| foo[l] = somearray.select {dosomething} }

So I'd be populating foo hash, with values from somearray according
to some magic. If I'd know I only need to use each value of somearray
once, it would make sense to 'pop' the values out from the somearray
in-place.

-- 
  ++ytti