def filter(self, func):
    """
    A lazy way to skip elements in the stream that gives False for the given
    function.
    """
    self._data = xfilter(func, self._data)
    return self
A lazy way to skip elements in the stream that gives False for the given
    function.