From: Renald Buter Date: 2001-06-09T00:42:34+09:00 Subject: [ruby-talk:16327] Removal of a list of entries from an array Hello, Is there functionality equivalent to the following in Ruby? class Array def remove(list) dup.remove!(list) end def remove_r(list) dup.remove_r!(list) end def remove!(list) list.each {|n| if n = index(n) then delete_at(n) end } self end def remove_r!(list) list.each {|n| if n = rindex(n) then delete_at(n) end } self end end Or am I the only one who is using this type of functionality a lot? Renald