foundation icon indicating copy to clipboard operation
foundation copied to clipboard

Use Collection.any instead of reimplementing or

Open galderz opened this issue 7 years ago • 2 comments

Foundation/Check/Main.hs implements its own or function.

Make it use Collection.any instead.

galderz avatar Jun 10 '17 12:06 galderz

one could implement or in Foundation/Collection/Collection.hs:

or :: (Collection col, Element col ~ Bool) => col -> Bool
or = any ((==) True)

NicolasDP avatar Jun 10 '17 12:06 NicolasDP

It would be great to add and too.

and :: (Collection col, Element col ~ Bool) => col -> Bool

NicolasDP avatar Jun 10 '17 12:06 NicolasDP