2 ms·
Just playing Devil's advocate, but one very good use of {} is for real anonymous functions. I.e. map([1,2,3], lambda (x) { print x return x * 2 })
by d0m 13y ago
Just playing Devil's advocate, but one very good use of {} is for real anonymous functions. I.e.
map([1,2,3], lambda (x) {
print x
return x * 2
})
That's one of the limiting reason why we can't have that in Python right now