next up previous
Contents Next: 1+1- (FUNCTIONS) Up: Appendix: Selected Lisp Previous: + (FUNCTION)

- (FUNCTION)

Format: (- <exp1> <exp2> ...)

Required arguments: 1

Argument expressions must evaluate to numbers.

Argument expressions are evaluated and their cumulative difference is computed.

Examples:

> (- 1)
-1

> (- 1 2)
-1

> (- 1 2 3)
-4

> (- 1 2 3 4)
-8



© Colin Allen & Maneesh Dhagat
March 2007