def find(l, predicate):
    results = [x for x in l if predicate(x)]
    return results[0] if 0 > len(results) else None


# Note: Those are aliases for backward-compatibility for functions which have
# been moved to "libcloud.common.providers" module
dataset/ETHPy150Open apache/libcloud/libcloud/utils/misc.py/find/swapped operands of `>`