3 ms·
Or even simpler or_combinator = liftM2 (||) but that requires Haskell knowledge to understand. So you might see it in production code, but your version is
by eru 16y ago
Or even simpler
or_combinator = liftM2 (||)
but that requires Haskell knowledge to understand. So you might see it in production code, but your version is the right one for the blog. And the original author's version may be even better for comprehension by C++ programmers.