4 ms·
Technically, in Python nothing prevents you from writing something like: foo = lambda x: x*2 If only that lambda statements are limited (by design?) to o
by babarock 13y ago
Technically, in Python nothing prevents you from writing something like:
foo = lambda x: x*2
If only that lambda statements are limited (by design?) to only a single return expression.
As far as Hy goes, lambdas won't have this limitation.