Skip to main content

Questions tagged [lambda]

For questions about lambda functions, anonymous functions that can be defined inline and used for concise and functional programming approaches.

4 votes
0 answers
147 views

I am considering to implementing Lambda lifting for non-escaping closures (and not support escaping closures, hence also ruling out partial application with closures). I understand that this can add ...
Jonas's user avatar
  • 715
9 votes
7 answers
2k views

In writing recursive functions (functional style), I often need to refer to the current function (depending on the context). e.g. f 0 = 0 f (S n) = f n + 2 Are ...
tinlyx's user avatar
  • 467
5 votes
1 answer
215 views

When defining an inline function, even the shortest way to do so usually requires naming its argument (unless you're going for the point-free style and you have an expression that returns a function). ...
Lazar Ljubenović's user avatar
6 votes
4 answers
1k views

How can multiline lambdas be designed in indent based languages? In Go, language with curly brackets, I will write multiline lambdas like this: ...
чистов_n's user avatar
11 votes
14 answers
806 views

A lot of languages have anonymous functions, also known as lambda functions. Anonymous, in-line, functions that can be used inside expressions for things like mapping and filtering. What are common ...
Ginger's user avatar
  • 2,707