What is a function defined by a lambda expression?
What is a function defined by a lambda expression?
a. A function defined with a lambda expression is an anonymous function (a function that has no defined name). This function can only have one argument and can only have one statement.
b. A function defined with a lambda expression is an anonymous function (a function that has no defined name). This function can take any number of arguments, but it can only have one statement.
c. A function defined with a lambda expression is an anonymous function (a function that has no defined name). This function can take any number of arguments and can take any number of instructions.
b. A function defined with a lambda expression is an anonymous function (a function that has no defined name). This function can take any number of arguments, but it can only have one statement.
Explanation:
Lambda expressions (sometimes called lambda forms) are used to create anonymous functions. The expression lambda parameters: expression yields a function object.