Summing item-wise in lists of same length

Is there an elegant trick to do something like this?

{2,2} + {1,1}
--> {3,3}

/adam

Not with plain vanilla AppleScript. You’ll need a scripting addition to deal with an array/matrix. Otherwise, as you probably know it’s the hard way:

set A1 to {1, 2}
set A2 to {2, 4}
set tSum to {}
repeat with k from 1 to 2
	set end of tSum to (item k of A1) + (item k of A2)
	--> {3, 6}
end repeat