Slightly less wise-ass, I couldn't come up with a use case for this code that'd give sane variable names. Third attempt:
sum $ do (element, True) <- results guard (odd element) return element
Slightly less wise-ass, I couldn't come up with a use case for this code that'd give sane variable names. Third attempt:
That's pretty far from imperative languages, though, which I kind of tried to avoid.