def any_of(elements):
    """
    Check to see if the argument is contained in a list of possible elements.

    :param elements: The elements to check the argument against in the predicate.
    :return: A predicate to check if the argument is a constituent element.
    """
    def predicate(argument):
        return argument in elements
    return predicate