

def first_match(predicate, iterable):
    '\n    Gets the first element matched by the predicate\n    in the iterable.\n    '
    for item in iterable:
        if predicate(item):
            return item
    return None

dataset/ETHPy150Open hyde/hyde/hyde/util.py first_match/original