### 6.1.9 The + operator applied on sequences and lists

The infixed operator +, with two sequences as arguments, returns the total sum of the elements of the two sequences. This is different than with two lists as arguments, where the term by term sums of the elements of the two lists would be returned. (See Section 8.3.1.) To use it as a prefix, it has to be quoted (’+’).

#### Examples

(1,2,3,4,5,6)+(4,3,5)

or:

'+'((1,2,3,4,5,6),(4,3,5))

33 |  |  |  |  |  |  |  |  |  |

[1,2,3,4,5,6]+[4,3,5]

or:

'+'([1,2,3,4,5,6],[4,3,5])

| ⎡ ⎣ | 5,5,8,4,5,6 | ⎤ ⎦