def select(predicate, iterable):
  """Select all items from the sequence for which the predicate is true.

      select(function or None, sequence) -> list

  :param predicate:
      Predicate function. If ``None``, select all truthy items.
  :param iterable:
      Iterable.
  :returns:
      A list of all items for which the predicate is true.
  """
  return list(filter(predicate, iterable))