def take_while(self, func):
        return self._transform(transformations.take_while_t(func))
Take elements in the sequence until func evaluates to False, then return them.
dataset/ETHPy150Open EntilZha/PyFunctional/functional/pipeline.py/Sequence.take_while