def every(predicate, iterable):
    """Determines whether the predicate is true for all elements in the iterable.

  :param predicate:
      Predicate function of the form::

          f(x) -> bool
  :param iterable:
      Iterable sequence.
  :returns:
      ``True`` if the predicate is true for all elements in the iterable.
  """
    for item in iterable:
        if not predicate(item):
            return False
    return True
