LISP Functions Lambda Functions - Lisp programming

What is Lambda Functions in LISP?

At some times the function need to be in only one place in your program and the function is so trivial that you may not give it a name, or may not like to store it in the symbol table, and would rather write an unnamed or anonymous function.

For this, LISP is used to write anonymous functions that are evaluated only when they are encountered in the program. These functions are called Lambda functions.

Such functions can be created using the lambda expression.


A lambda form cannot be evaluated and it must appear only where LISP expects to find a function.


Create a new source code file named main.lisp and type the following code in it.

On executing the above code the following result is produced:

All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd Protection Status

Lisp programming Topics