MCPcopy Create free account
hub / github.com/EntilZha/PyFunctional / take_while_t

Function take_while_t

functional/transformations.py:247–255  ·  view source on GitHub ↗

Transformation for Sequence.take_while :param func: takes while func is True :return: transformation

(func)

Source from the content-addressed store, hash-verified

245
246
247def take_while_t(func):
248 """
249 Transformation for Sequence.take_while
250 :param func: takes while func is True
251 :return: transformation
252 """
253 return Transformation(
254 "take_while({0})".format(name(func)), partial(takewhile, func), None
255 )
256
257
258def flat_map_impl(func, sequence):

Callers

nothing calls this directly

Calls 1

nameFunction · 0.85

Tested by

no test coverage detected