+ (addition)

Syntax

number + number

+ number number

(+ number number number ...)

Explanation

+ outputs the sum of its two inputs. + may also be used as a prefix operation with two inputs, like SUM.

Examples

? 5 + 7

Result: 12

? 8 + -3

Result: 5

? 5 + 7 + 4

Result: 16

?

The following example uses + as a prefix operation:

? + 5 7

Result: 12

? (+ 6 5 4 3 2 1)

Result: 21

?