3 ms·
It's a great example of the trade-offs made in python (as opposed to, say, perl) design: It's not really a one-liner (yeah, it fits on one line, but it just cri
by e12e 12y ago
It's a great example of the trade-offs made in python (as opposed to, say, perl) design: It's not really a one-liner (yeah, it fits on one line, but it just cries out to be re-formatted) -- it's too verbose -- but the flip side is that it's actually rather readable.
- vegggdor 12y agoHaving to use lambdas just to get the syntax to allow for a one liner makes your point about reformatting.