diff options
| author | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2024-04-07 13:41:34 -0500 |
| commit | 754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch) | |
| tree | f1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/elisp/function-type.html | |
new repository
Diffstat (limited to 'devdocs/elisp/function-type.html')
| -rw-r--r-- | devdocs/elisp/function-type.html | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/devdocs/elisp/function-type.html b/devdocs/elisp/function-type.html new file mode 100644 index 00000000..b799ce13 --- /dev/null +++ b/devdocs/elisp/function-type.html @@ -0,0 +1,6 @@ + <h4 class="subsection">Function Type</h4> <p>Lisp functions are executable code, just like functions in other programming languages. In Lisp, unlike most languages, functions are also Lisp objects. A non-compiled function in Lisp is a lambda expression: that is, a list whose first element is the symbol <code>lambda</code> (see <a href="lambda-expressions">Lambda Expressions</a>). </p> <p>In most programming languages, it is impossible to have a function without a name. In Lisp, a function has no intrinsic name. A lambda expression can be called as a function even though it has no name; to emphasize this, we also call it an <em>anonymous function</em> (see <a href="anonymous-functions">Anonymous Functions</a>). A named function in Lisp is just a symbol with a valid function in its function cell (see <a href="defining-functions">Defining Functions</a>). </p> <p>Most of the time, functions are called when their names are written in Lisp expressions in Lisp programs. However, you can construct or obtain a function object at run time and then call it with the primitive functions <code>funcall</code> and <code>apply</code>. See <a href="calling-functions">Calling Functions</a>. </p><div class="_attribution"> + <p class="_attribution-p"> + Copyright © 1990-1996, 1998-2022 Free Software Foundation, Inc. <br>Licensed under the GNU GPL license.<br> + <a href="https://www.gnu.org/software/emacs/manual/html_node/elisp/Function-Type.html" class="_attribution-link">https://www.gnu.org/software/emacs/manual/html_node/elisp/Function-Type.html</a> + </p> +</div> |
