The Idea of Multiple Values
Sometimes you want a function to return more than one value
Option 1: Make an object that contains the values
- (defun foo () (list 1 2))
Option 2: Use Lisp multiple values
- (defun foo () (values 1 2))
- 1 is said to be the “first value”
- 2 is said to be the “second value”