Go to the first, previous, next, last section, table of contents.


Function Exits

It is often useful to be able to immediately return control from a function definition (like the C return statement). Jade's version of Lisp has the return function for this.

Function: return &optional value
This function transfers control out of the most-recent lambda-expression (i.e. a function or macro definition) so that the result of the lambda- expression is value.

(funcall '(lambda () (return 'x) 'y))
    => x

The 'y form is never evaluated since control is passed straight from the (return 'y) form back to the funcall form.


Go to the first, previous, next, last section, table of contents.