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

Function makeReducerIntersection

packages/effect/src/Record.ts:1476–1483  ·  view source on GitHub ↗
(
  combiner: Combiner.Combiner<A>
)

Source from the content-addressed store, hash-verified

1474 * @since 4.0.0
1475 */
1476export function makeReducerIntersection<K extends string, A>(
1477 combiner: Combiner.Combiner<A>
1478): Reducer.Reducer<Record<K, A>> {
1479 return Reducer.make(
1480 (self, that) => intersection(self, that, combiner.combine) as any,
1481 {} as Record<K, A>
1482 )
1483}
1484
1485/**
1486 * Returns the first entry that satisfies the specified

Callers

nothing calls this directly

Calls 2

intersectionFunction · 0.85
makeMethod · 0.65

Tested by

no test coverage detected