def rejects(predicate):
    """
    Reject items if they pass predicate function test.
    Inverse of filter.
    """
    def reject_bound(iterable):
        """
        Reject items with bound predicate function.
        """
        for item in iterable:
            if not predicate(item):
                yield item
    return reject_bound