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
November 1999