def filter(self, func):
        return self._transform(transformations.filter_t(func))
Filters sequence to include only elements where func is True.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.filter