Previous Up Next

5.38.7  The + operator applied on sequences

The infixed operator +, with two sequences as argument, returns the total sum of the elements of the two sequences.
Note the difference with the lists, where the term by term sums of the elements of the two lists would be returned.
Input :


or :


Output :


But input :


Output :


When the operator + is prefixed, it has to be quoted (’+’).

Previous Up Next