+2013-12-28 Glenn Morris <rgm@gnu.org>
+
+ * control.texi (Pattern matching case statement): Brevity.
+
2013-12-27 Chong Yidong <cyd@gnu.org>
* functions.texi (Function Cells):
was returned by @code{(get-return-code x)}.
To give a more complex example, a simple interpreter for a little
-expression language could look like:
+expression language could look like (note that this example requires
+lexical-binding):
@example
(defun evaluate (exp env)
@code{(pred numberp)} is a pattern that simply checks that @code{exp}
is a number, and @code{_} is the catch-all pattern that matches anything.
-Note that the the lambda being the result of the @code{fn} clause is a
-closure (@pxref{Closures}), so the file defining @code{evaluate} must
-have lexical binding enabled (@pxref{Using Lexical Binding}, for how
-to enable it).
-
Here are some sample programs including their evaluation results:
@example