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

Method init

functional/pipeline.py:309–318  ·  view source on GitHub ↗

Returns the sequence, without its last element. >>> seq([1, 2, 3]).init() [1, 2] :return: sequence without last element

(self)

Source from the content-addressed store, hash-verified

307 return self.last()
308
309 def init(self):
310 """
311 Returns the sequence, without its last element.
312
313 >>> seq([1, 2, 3]).init()
314 [1, 2]
315
316 :return: sequence without last element
317 """
318 return self._transform(transformations.init_t())
319
320 def tail(self):
321 """

Callers 1

test_initMethod · 0.80

Calls 1

_transformMethod · 0.95

Tested by 1

test_initMethod · 0.64