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:
Lisp programming Related Interview Questions
|AutoCAD Interview Questions||Python Interview Questions|
|Microstrategy Interview Questions||Basic Programming Interview Questions|
|Ruby on Rails Interview Questions||Ruby Interview Questions|
|Prolog Interview Questions||CGI Programming Interview Questions|
|D Programming Language Interview Questions||Workfusion Interview Questions|
|Ruby Sinatra Interview Questions|
Lisp Programming Tutorial
All rights reserved © 2018 Wisdom IT Services India Pvt. Ltd
Wisdomjobs.com is one of the best job search sites in India.