foundation
foundation copied to clipboard
Use Collection.any instead of reimplementing or
Foundation/Check/Main.hs implements its own or
function.
Make it use Collection.any
instead.
one could implement or
in Foundation/Collection/Collection.hs
:
or :: (Collection col, Element col ~ Bool) => col -> Bool
or = any ((==) True)
It would be great to add and
too.
and :: (Collection col, Element col ~ Bool) => col -> Bool