Alternative syntax for Python's lambda
Alternative syntax for Python's lambda
[Development] Posted Mar 3, 2021 22:07 UTC (Wed) by jake
The Python lambda keyword, which can be used to create small, anonymous functions, comes from the world of functional programming, but is perhaps not the most beloved of Python features. In part, that may be because it is somewhat clunky to use, especially in comparison to the shorthand notation offered by other languages, such as JavaScript. That has led to some discussions on possible changes to lambda in Python mailing lists since mid-February.