MCPcopy Create free account
hub / github.com/effect-app/libs / reduce_

Function reduce_

packages/effect-app/src/Set.ts:411–416  ·  view source on GitHub ↗
(
  O: Order.Order<A>
)

Source from the content-addressed store, hash-verified

409 * Reduce over the set values
410 */
411export function reduce_<A>(
412 O: Order.Order<A>
413): <B>(fa: Set<A>, b: B, f: (b: B, a: A) => B) => B {
414 const toArrayO = toArray(O)
415 return (fa, b, f) => toArrayO(fa).reduce(f, b)
416}
417
418// /**
419// * Fold + Map

Callers 3

make_Function · 0.90
reduceFunction · 0.85
make_Function · 0.85

Calls 1

toArrayFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…