# The + operator applied on sequences and lists

### 5.39.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 5.16.1.) To use it as a prefix, it has to be quoted (’+’).

#### Examples.

- Input:
  (1,2,3,4,5,6)+(4,3,5)
  or:
  ’+’((1,2,3,4,5,6),(4,3,5))
  Output:

  33

- Input:
  [1,2,3,4,5,6]+[4,3,5]
  or:
  ’+’([1,2,3,4,5,6],[4,3,5])
  Output:

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