2 ms·
A bit tangential, but the article contains a nice gem of pattern matching in C. nc = (p < p0) ? 0 : (p < p0 + p1) ? 1 : 2;
by credit_guy 6y ago
A bit tangential, but the article contains a nice gem of pattern matching in C.
nc =
(p < p0) ? 0
: (p < p0 + p1) ? 1
: 2;