> You want to create a two-dimensional array, right?
> It works when you add square braces:
> 
> a = [1,2,3]
> a.map{|n| [n,n] }
Yeah I'm just a little lazy and dislike all the brackets :)
-- 
Posted via http://www.ruby-forum.com/.