Hi,

At Thu, 13 Mar 2003 14:46:49 +0900,
Dave Thomas wrote:
> Try
> 
> [1,2].map {|i| next 'b' if i < 2; 'a'}
> => ["b", "a"]

Note that it's a 1.7 (and later) feature.

-- 
Nobu Nakada