I'm really interested how lambda functions are used. Does it make sense to use them in a modern, high-level programming language like php? If yes, why?
Is this really just a function embedded in a function (like this) or is there more behind them?
A lambda term represents a function as a value. It can be passed around exactly as a value (as it is one) and yet applied by giving it some arguments. Named functions are just names that map to lambda terms, either as constants or variables (depending on the language details).
And yes, they are quite prevalent in high-level programming languages. For example, all functions in JavaScript are actually lambda terms stored in variables.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With