5 ms·
> Lambdas in Python are awkward Can you elaborate on that, please? Considering the examples given by the author, I think they would be a better option.
by ivanjr0 9y ago
> Lambdas in Python are awkward
Can you elaborate on that, please?
Considering the examples given by the author, I think they would be a better option.
- abhirag 9y agoNot the OP but I think he was referring to the restrictions python puts on lambda expressions: - they can only contain a single expression - they cannot contain statements
- jmiserez 9y agoFor precondition checking, shouldn’t that suffice?
- baq 9y agoDepends on the precondition.
- Sohcahtoa82 9y agoPython has lambdas that have multiple expressions and statements. They're called functions.
- yen223 9y agoPython functions aren't anonymous