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

Function drop_while_t

functional/transformations.py:225–233  ·  view source on GitHub ↗

Transformation for Sequence.drop_while :param func: drops while func is true :return: transformation

(func)

Source from the content-addressed store, hash-verified

223
224
225def drop_while_t(func):
226 """
227 Transformation for Sequence.drop_while
228 :param func: drops while func is true
229 :return: transformation
230 """
231 return Transformation(
232 "drop_while({0})".format(name(func)), partial(dropwhile, func), None
233 )
234
235
236def take_t(n):

Callers

nothing calls this directly

Calls 1

nameFunction · 0.85

Tested by

no test coverage detected