Robert Klemme schrieb:

>>Is there a method similar to Array.delete which returns the modified
>>array instead of modifing the array by itself?
> 

> irb(main):010:0> a.reject{|s|s>"b"}
> => ["a", "b"]
> irb(main):011:0> a
> => ["a", "b", "c"]


sure, that works. I did is this way:

(a.collect {|x| x if x != "c"}).compact

but delete and delete! would be nicer!

Thanks anyway!

Eric.