Re:The unknown features of Python's `operator` module
by jonathrg on Monday August 09, 2021 @02:29AM
(#28113310)
If you assign a lambda to a variable, you might as well use a def. A more typical use of a lambda is as an arguments to a function call. What would be the name of, say, the first argument to map(lambda x: x*2, numbers)?
[ Parent
| on HN ]
There are no comments on this comment yet.