reduce

abstract fun reduce(state: S, entry: JournalEntry<P>): S

Folds entry into state, returning the updated state.

Return

The new state after applying entry.

Parameters

state

The accumulated state up to (but not including) this entry.

entry

The journal entry being replayed.