summaryrefslogtreecommitdiffstats
path: root/deploy/common/query.py
blob: 9b1adc2cdf662fa29a9d9ee2f2e1964e2bd14ad8 (plain)
1
2
3
4
5
def find(function, sequence, default=None):
    for s in sequence:
        if function(s):
            return s
    return default