Sharon Phillips wrote:

> On 30/11/2007, at 10:51 PM, Jari Williamsson wrote:
> 
>> How do I (in an elegant way) delete an element of an array within a 
>> block, while using a block iterator?
> I assume using delete_if is no good in this situation?
> [1,2,3,4,5,6].delete_if{|i| i>4}
>  > [1,2,3,4]

Thanks, delete_if works just fine!


Best regards,

Jari Williamsson