Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Can someone explain....

Status
Not open for further replies.

gbaughma

IS-IT--Management
Staff member
Nov 21, 2003
4,769
11
38
58
US
Can someone explain, in simple terms... a lambda expression?

For some stupid reason, I can't wrap my brain around it.


Just my $.02

"What the captain doesn't realize is that we've secretly replaced his Dilithium Crystals with new Folger's Crystals."

--Greg
 
It is just an anonymous function (no name) which captures the values or references in the scope in which they are defined.

Name comes from lambda calculus introduced in the 1930s. It has been available in LISP since 1964 so this is not some fancy new concept. Many of the examples you see on the internet are very bad examples of using lambdas. Very often you can just declare functions instead of using lambdas in those examples.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top