4 ms·
Python lambdas cannot contain statements, only expressions. Typical python contains a lot of statements, so that's a bit annoying. You can define inner functio
by cmcaine 9y ago
Python lambdas cannot contain statements, only expressions. Typical python contains a lot of statements, so that's a bit annoying.
You can define inner functions and so on, and most of the times that I want to use lambdas it's just because I've been stuck in a language without *-comprehensions for too long.
+ works fine on complex numbers.
I'm not super familiar with the loop macro, but it lets you do both things similar to a python comprehension and to a python for loop. I don't think it does anything you can't do in python.