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

Method tails

functional/pipeline.py:342–351  ·  view source on GitHub ↗

Returns consecutive tails of the sequence. >>> seq([1, 2, 3]).tails() [[1, 2, 3], [2, 3], [3], []] :return: consecutive tail()s of the sequence

(self)

Source from the content-addressed store, hash-verified

340 return self._transform(transformations.inits_t(_wrap))
341
342 def tails(self):
343 """
344 Returns consecutive tails of the sequence.
345
346 >>> seq([1, 2, 3]).tails()
347 [[1, 2, 3], [2, 3], [3], []]
348
349 :return: consecutive tail()s of the sequence
350 """
351 return self._transform(transformations.tails_t(_wrap))
352
353 def cartesian(self, *iterables, **kwargs):
354 """

Callers 1

test_tailsMethod · 0.80

Calls 1

_transformMethod · 0.95

Tested by 1

test_tailsMethod · 0.64