From: Joe Buck Date: 2010-01-01T04:51:10+09:00 Subject: Delete elements in array, break, and keep changes? I have an array of a lot elements that I need to cluster (they are latitudes and longitudes). As I iterate the array I want to remove elements that I have already clustered. Currently I've tried using Array::reject! and Array::delete_if. It works. I can further optimize by breaking from the delete_if/reject! block if certiain conditions are met. Here is the issue, if I call break in the block, all of the changes to the array are lost. Is there a way to break from the block but still delete/reject elements in the array? -- Posted via http://www.ruby-forum.com/.