From: "Peña, Botp" Date: 2008-04-15T16:51:08+09:00 Subject: Re: noob 'why doesn't this work' question From: Peña, Botp [mailto:botp@delmonte-phil.com] # irb(main):004:0> sizeList.group_by.with_index{|e,i| # countarray.include? i} # => {false=>[0, 1, 2, 5], true=>[3, 4, 6]} 6th way :) :0> sizeList.values_at(*(0..sizeList.size-1).to_a-countarray) => [0, 1, 2, 5] this one plays w the indices, then uses values_at to get back to the contents. kind regards -botp