Companion

object Companion

Functions

Link copied to clipboard
fun <STATE, EVENT> applyEvents(stateEvolver: Evolver<EVENT, STATE>, initialState: STATE?, eventStream: List<EVENT>): STATE

Perform a left-fold over the eventStream using the initialState as the initial state