Ryan Davis wrote in post #1138871:
>   even, odd = arr.each_slice(2).to_a.transpose

This is nice, but you'd have to be sure that there's an even number of 
values.
arr << nil if arr.length.odd?

-- 
Posted via http://www.ruby-forum.com/.