evolve

fun evolve(state: S, event: Any, commit: EventStream? = null): S

Applies event to state. commit is the commit the event belongs to, which an evolve function may read (readsCommits): the kernel gives it, from the log or from the decision being committed.