Evolve<S, E> typedef

Evolve<S, E> = S Function(S state, E event)

A state transition function from a current state and event to a new state.

Implementation

typedef Evolve<S, E> = S Function(S state, E event);