3 ms·
A function defined with def would work just the same there. It would have a big ugly 'return' in it and be a few characters longer, but it would work the same,
by maxerickson 13y ago
A function defined with def would work just the same there.
It would have a big ugly 'return' in it and be a few characters longer, but it would work the same, so I don't see what lambda brings to it.
- nine_k 13y agoBoth def and lambda would fail identically in this context.