Lambda Functions in LISP Last Updated : 09 Nov, 2021 Summarize Comments Improve Suggest changes Share Like Article Like Report In this article, we will discuss lambda functions in LISP. The Lambda function is used to evaluate a mathematical expression in our program. They are also known as anonymous functions. We can create these functions using lambda expression. Syntax: (lambda (parameters) expression_code) where, The parameters are the numbers of operands in the expressionThe expression_code is the mathematical logic expression Example 1: LISP program to evaluate the mathematical expression through a lambda expression Lisp ;lambda expression to get sum of product of four numbers ;mathematical expression is (val1*val2) + (val3*val4) (write ((lambda (val1 val2 val3 val4) (+ (* val1 val2) (+ (* val3 val4)))) ;pass the values 2 4 6 8) ) (terpri) (write ((lambda (val1 val2 val3 val4) (+ (* val1 val2) (+ (* val3 val4)))) ;pass the values 10 20 30 40) ) Output: 56 1400 Example 2: LISP Program to evaluate an expression Lisp ;lambda expression to get product of two numbers ;mathematical expression is (val1*val2) (write ((lambda (val1 val2 ) (* val1 val2)) ;pass the values 60 4 ) ) (terpri) (write ((lambda (val1 val2 ) (* val1 val2)) ;pass the values 10 20 ) ) Output: 240 200 Comment More infoAdvertise with us Next Article Lambda Functions in LISP S saisravanprojects Follow Improve Article Tags : LISP LISP-Basics Similar Reads Functions in LISP A function is a set of statements that takes some input, performs some tasks, and produces the result. Through functions, we can split up a huge task into many smaller functions. They also help in avoiding the repetition of code as we can call the same function for different inputs. Defining Functio 3 min read Nested Lambda Function in Python Prerequisites: Python lambda In Python, anonymous function means that a function is without a name. As we already know the def keyword is used to define the normal functions and the lambda keyword is used to create anonymous functions. When we use lambda function inside another lambda function then 2 min read Lambda Function - Ruby In Computer Programming, Lambda functions are anonymous functions. Lambda functions in Ruby are no different. Since everything in Ruby is treated as an object, lambdas are also objects in Ruby. Lambdas in Ruby allow us to wrap data and logic in a portable package.  Syntax to create Lambda function 2 min read Lambda Function Handler In Python In the cloud computing revolution, AWS Lambda stands out as a key solution from Amazon Web Services (AWS), allowing developers to easily implement code without the burden of monitoring the check server. In this ecosystem, Lambda Handler becomes important. This handler acts as the gateway to the Lamb 8 min read Mapping Functions in LISP In this article, we will discuss mapping functions in lisp. Mapping functions are applied on the list data structure for combining one or more lists of elements. By using this we can perform mathematical operations and can join the elements. The main advantage of this function is that we can combine 2 min read Like