From: Joe Buck Date: 2010-01-02T01:45:30+09:00 Subject: Re: Delete elements in array, break, and keep changes? Ehsan, Thanks for the help. Unfortunately I don't think that will work as it removes the first element in the array. What I need is an Array::delete_if or Array::reject! call that allows me to break from the block while still removing elements. My solution is to use a second array to keep the indices of all removed elements. I can then iterate through the second array after the first loop and remove the elements. I'm guessing reject! and delete_if do this as well. It could be more efficient but it works. Thanks! -- Posted via http://www.ruby-forum.com/.