From: Morton Goldberg Date: 2006-08-13T02:42:10+09:00 Subject: Re: map or collect with multidimension arrays Try x = [["john", "doe"],["mary", "jane"],["jim","richards"], ["sue","scott"]] # <= "sue" not 'sue" y = x.map {|i| i << "name" } p y Regards, Morton On Aug 12, 2006, at 11:08 AM, Dark Ambient wrote: > I know they are interchangeable > But I can't make it work. > > For instance - > x = [["john", "doe"],["mary", "jane"],["jim","richards"], > ['sue","scott"]] > y = x.map {|i| i + "name" } > p y > > It's returning nil on me ???? > > Stuart