from functools import reduce
from operator import and_


def all(p, *lsargs):
    """
    Test if all sets of members from supplied lists satisfy predicate p
    """
    return reduce(and_, map(p, *lsargs), True)