A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://www.gnu.org/software/emacs/manual/html_node/elisp/Lambda-Expressions.html below:

Lambda Expressions (GNU Emacs Lisp Reference Manual)

Next: Naming a Function, Previous: What Is a Function?, Up: Functions   [Contents][Index]

13.2 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 Naming a Function). Before going into these details, the following subsections describe the components of a lambda expression and what they do.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4