|
|
Subscribe / Log in / New account

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.

Full Story (comments: 55)


Copyright © 2021, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds