From: Eero Saynatkari Date: 2009-03-06T11:13:32+09:00 Subject: Re: Any solutions to Ruby's inconsistencies? Ken Bloom wrote: > > arr2 = arr.collect{|ii| next 0 if ii == 3; ii+1} Should be: arr2 = arr.collect {|i| break if i == 3; i + 1 } # arr2 == nil But, really, this does not seem the most sensible way to implement anything except for illustrative purposes. -- Magic is insufficiently advanced technology. -- Posted via http://www.ruby-forum.com/.