3 ms·
I agree this one is very elegant, but the downside is that you'll still need the parens if you use it as a subexpression, which you most likely will if you want
by mehrdadn 8y ago
I agree this one is very elegant, but the downside is that you'll still need the parens if you use it as a subexpression, which you most likely will if you want to distinguish between, say, 0 and None.