From 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 7 Apr 2024 13:41:34 -0500 Subject: new repository --- devdocs/elisp/lambda-expressions.html | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 devdocs/elisp/lambda-expressions.html (limited to 'devdocs/elisp/lambda-expressions.html') diff --git a/devdocs/elisp/lambda-expressions.html b/devdocs/elisp/lambda-expressions.html new file mode 100644 index 00000000..681f81ef --- /dev/null +++ b/devdocs/elisp/lambda-expressions.html @@ -0,0 +1,30 @@ +

Lambda Expressions

A lambda expression is a function object written in Lisp. Here is an example:

(lambda (x)
+  "Return the hyperbolic cosine of X."
+  (* 0.5 (+ (exp x) (exp (- x)))))
+
+

In Emacs Lisp, such a list is a valid expression which evaluates to a function object.

A lambda expression, by itself, has no name; it is an anonymous function. Although lambda expressions can be used this way (see Anonymous Functions), they are more commonly associated with symbols to make named functions (see Function Names). Before going into these details, the following subsections describe the components of a lambda expression and what they do.

+ + + + + + + + + + + + + + + +
+

+ Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc.
Licensed under the GNU GPL license.
+ https://www.gnu.org/software/emacs/manual/html_node/elisp/Lambda-Expressions.html +

+
-- cgit v1.2.3