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

Function reduce

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

Source from the content-addressed store, hash-verified

399 * Reduce over the set values
400 */
401export function reduce<A>(
402 O: Order.Order<A>
403): <B>(b: B, f: (b: B, a: A) => B) => (fa: Set<A>) => B {
404 const red = reduce_(O)
405 return (b, f) => (fa) => red(fa, b, f)
406}
407
408/**
409 * Reduce over the set values

Callers 2

make_Function · 0.90
make_Function · 0.70

Calls 1

reduce_Function · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…