MCPcopy Create free account
hub / github.com/Effect-TS/effect / sumAll

Function sumAll

packages/effect/src/BigDecimal.ts:1342–1349  ·  view source on GitHub ↗
(collection: Iterable<BigDecimal>)

Source from the content-addressed store, hash-verified

1340 * @since 3.16.0
1341 */
1342export const sumAll = (collection: Iterable<BigDecimal>): BigDecimal => {
1343 let out = zero
1344 for (const n of collection) {
1345 out = sum(out, n)
1346 }
1347
1348 return out
1349}

Callers

nothing calls this directly

Calls 1

sumFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…