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

Function makeReducerUnion

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

Source from the content-addressed store, hash-verified

1446 * @since 4.0.0
1447 */
1448export function makeReducerUnion<K extends string, A>(combiner: Combiner.Combiner<A>): Reducer.Reducer<Record<K, A>> {
1449 return Reducer.make<Record<K, A>>(
1450 (self, that) => union(self, that, combiner.combine),
1451 {} as Record<K, A>
1452 )
1453}
1454
1455/**
1456 * Creates a `Reducer` whose `combine` operation intersects two records and

Callers

nothing calls this directly

Calls 2

unionFunction · 0.70
makeMethod · 0.65

Tested by

no test coverage detected