(combiner: Combiner.Combiner<A>)
| 1446 | * @since 4.0.0 |
| 1447 | */ |
| 1448 | export 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 |