def any_pass(ps, v): return reduce(either, always(False), ps)(v)
def all_pass(ps, v): return reduce(both, always(True), ps)(v)
from pyramda.function.curry import curry from pyramda.iterable.reduce import reduce from .multiply import multiply product = reduce(multiply, 1)