From: Emmanuel Touzery Date: 2004-01-15T00:07:45+09:00 Subject: Re: [Q] Array.delete E.-R. Bruecklmeier wrote: > Is there a method similar to Array.delete which returns the modified > array instead of modifing the array by itself? > > Why aren's there two methods: > > Array.delete > > and > > Array.delete! > > ??? if Array.delete was duplicating the array before removing the value, it would be a huge performance killer for big arrays. you can simply do: oldArray = myArray.dup myArray.delete(obj) emmanuel