Previous Up Next

6.42.3  Term by term sum of two lists: + .+

The infixed operators + and .+ as well as the prefixed operator ’+’ return the term by term sum of two lists. If the two lists do not have the same size, the smaller list is padded with zeros.
Note the difference with sequences: if the infixed operator + or the prefixed operator ’+’ is applied to two sequences, it merges the sequences, hence return the sum of all the terms of the two sequences.


Examples.


Warning!
When the operator + is prefixed, it should be quoted (’+’).


Previous Up Next