From: angus Date: 2003-08-29T21:11:39+09:00 Subject: Re: multiply all array with array > say, i have: > a = [1,2,3] and b = [4,5,6] > and i want to get another array, with c[ix] = a[ix] * b[ix]. > (i want to get c = [4,10,18]) a.zip(b).map { |x,y| x*y } # => [4, 10, 18]