From: Steven Lumos Date: 2006-09-09T06:48:59+09:00 Subject: Re: symbol tricks Jason Nordwick writes: > YAD wrote: >> Jason Nordwick wrote: >>> (grid+grid.transpose) >> Is this correct Ruby? If so, is it documented online somewhere? >> You're not really adding the arrays, are you? > > Plus for arrays and strings is concatenation. I don't like it either, b/c array plus should be addition of corresponding elements, but that is the way things are. > > -j >> require 'matrix' => true >> Vector[1,2,3] + Vector[4,5,6] => Vector[5, 7, 9] Steve