4 ms·
Not 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 conta
by abhirag 9y ago
Not 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