(seq, initial_zero)
| 2083 | |
| 2084 | @functools.lru_cache |
| 2085 | def _cumsum(seq, initial_zero): |
| 2086 | if isinstance(seq, _HashIdWrapper): |
| 2087 | seq = seq.wrapped |
| 2088 | if initial_zero: |
| 2089 | return tuple(toolz.accumulate(add, seq, 0)) |
| 2090 | else: |
| 2091 | return tuple(toolz.accumulate(add, seq)) |
| 2092 | |
| 2093 | |
| 2094 | @functools.lru_cache |
no test coverage detected
searching dependent graphs…