next up previous
Contents Next: = (PREDICATE) Up: Appendix: Selected Lisp Previous: - (FUNCTION)

1+, 1- (FUNCTIONS)

Format: (1+ <num> ) (1- <num> )

Required arguments: 1

<num> : any Lisp expression that evaluates to a number.

Examples:

> (1+ 3)
4

> (1- pi)
2.1415926535897931

> (1+ (1- 3))
3



© Colin Allen & Maneesh Dhagat
March 2007