MCPcopy Create free account
hub / github.com/Lauriat/funct / accumulate

Method accumulate

funct/Array.py:300–305  ·  view source on GitHub ↗

Returns accumulated Array of elements using provided function. Defaults to accumulated sum.

(self, l=operator.add)

Source from the content-addressed store, hash-verified

298 return self
299
300 def accumulate(self, l=operator.add):
301 """
302 Returns accumulated Array of elements using provided function.
303 Defaults to accumulated sum.
304 """
305 return Array(itertools.accumulate(self, l))
306
307 def clip(self, _min, _max, inplace=False):
308 """

Callers

nothing calls this directly

Calls 1

ArrayClass · 0.85

Tested by

no test coverage detected