I have recently heard people talk about code being "lambda". I have never heard of this phrase before. What does it mean?
migrated from stackoverflow.com Apr 12 '11 at 12:08
I mentally filed it under: a function you can pass on to another function as argument.
The scientific answer: http://en.wikipedia.org/wiki/Lambda_calculus
Lambda expressions are either an abstraction (sometimes referred to as anonymous function), an application or a variable (most languages also add constants to this list). Lambda terms are not necessarily functions, and not necessarily passed as parameters, though this is a common practice.
A common example of lambda expressions in C#
will output: 2
In this code, I pass a lambda construction to the
The lambda in this call executes a simple equation and returns a boolean, telling
|show 7 more comments|
Anonymous (unnamed) function or an object that is usually inlined as an argument to another function.
Hence, the namespace is less polluted.
Lambda usually refers to a function expression in a functional programming context.
This is a lambda expression in python:
Represents a function that increments its parameter