def partition(self, func):
        return self._transform(transformations.partition_t(_wrap, func))
Partition the sequence based on satisfying the predicate func.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.partition