def first_true(iterable, default=False, pred=None):
<EOL>return next(filter(pred, iterable), default)<EOL>
Returns the first true value in the iterable.

    If no true value is found, returns *default*

    If *pred* is not None, returns the first item
    for which pred(item) is true.