Morton Goldberg
8/12/2006 5:42:00 PM
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