Previous Up Next

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


Examples.


Previous Up Next