Skip to main content
Stack Overflow
  1. About
  2. For Teams

Return to Revisions

2 of 3
added 19 characters in body; edited body
Mark Cidade
  • 100.2k
  • 33
  • 231
  • 238

It refers to the lambda calculus which is a formal system that just has lambda expressions, which represents a function that takes a function for its sole argument and returns a function. All functions in the lambda calculus are of that type, i.e., λ : λ → λ.

Lisp used the lambda concept to name its anonymous function literals. This lambda represents a function that takes two arguments, x and y, and returns their product:

(lambda (x y) (* x y)) 

It can be applied in-line like this (evaluates to 50):

((lambda (x y) (* x y)) 5 10)
marxidad
  • 100.2k
  • 33
  • 231
  • 238

AltStyle によって変換されたページ (->オリジナル) /