Questions tagged [lambda]
For questions about lambda functions, anonymous functions that can be defined inline and used for concise and functional programming approaches.
5 questions
4
votes
0
answers
147
views
What are the drawbacks with lambda lifting for non-escaping closures?
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 ...
9
votes
7
answers
2k
views
Is there a generic way to refer to the current function in recursion?
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 ...
5
votes
1
answer
215
views
Possible ways to determine reach of implicit lambda expressions
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).
...
6
votes
4
answers
1k
views
How can multiline lambdas be designed in indent based languages?
How can multiline lambdas be designed in indent based languages?
In Go, language with curly brackets, I will write multiline lambdas like this:
...
11
votes
14
answers
806
views
What are common options for lambda function syntax?
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 ...