parameters: (iterable, default=None, pred=None)
return_statement: return next(filter(pred, iterable), default)
docstring: 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) == True`` .
  
          >>> first_true(range(10))
          1
          >>> first_true(range(10), pred=lambda x: x > 5)
          6
          >>> first_true(range(10), default='missing', pred=lambda x: x > 9)
          'missing'
docstring_summary: Returns the first true value in the iterable.
docstring_tokens: Returns the first true value in the iterable .
function: def first_true(iterable, default=None, pred=None):
      """
      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) == True`` .
  
          >>> first_true(range(10))
          1
          >>> first_true(range(10), pred=lambda x: x > 5)
          6
          >>> first_true(range(10), default='missing', pred=lambda x: x > 9)
          'missing'
  
      """
      return next(filter(pred, iterable), default)
function_tokens: def first_true ( iterable , default = None , pred = None ) : return next ( filter ( pred , iterable ) , default )