On Wed, 15 Jan 2003 08:33:01 +0900, Daniel Carrera wrote:

> In my particular problem I have an array of the form:
> 
> [ [ 34, "something" ] , [ 2, "another"] , ... ]
> 
> I wish to eliminate the entries whose numeric value is less than - say -
> 3.  So something like:

array = Array[[0, "eliminate"], [1, "eliminate"], [5, "keep"], [1, "eliminate"],
         [10, "keep"], [20, "keep"], [-4, "eliminate"], [100, "keep"]]

array.delete_if { |x| x[0] < 3 }
puts array