def any_early_exit(iterable, predicate):
    """Tests each element in iterable by calling predicate(element).

    Returns True on first True, or False.
    """
    for i in iterable:
        if predicate(i):
            return True
    return False