Open chessai opened 3 years ago
Often in duckling we see
or . sequence $ [somePredicate, someOtherPredicate]
or
and . sequence $ [somePredicate, someOtherPredicate]
I would rather have functions
allOf, atLeastOneOf :: [a -> Bool] -> (a -> Bool) allOf ps = and . sequence ps atLeastOneOf ps = or . sequence ps
This is more readable IMO, and would be a trivial find+replace
Often in duckling we see
or
I would rather have functions
This is more readable IMO, and would be a trivial find+replace