combineReduce<State, Event> function

Reduce<State, Event>? combineReduce<State, Event>(
  1. Reduce<State, Event>? reduce,
  2. Reduce<State, Event>? nextReduce
)

Implementation

Reduce<State, Event>? combineReduce<State, Event>(
  Reduce<State, Event>? reduce,
  Reduce<State, Event>? nextReduce,
) {
  return _combine(
    reduce,
    nextReduce,
    combine: (reduce, nextReduce) {
      return (state, event) => nextReduce(reduce(state, event), event);
  });
}