orsetto.cf
B.Dispatch
The dispatch signature.
orsetto.cbor
orsetto.json
orsetto.ucs
type event = Event.t
The event type.
type 'a t
The dispatch type.
val create : (event -> 'a option) -> 'a t
The DFA uses create f to make an event dispatch that returns transitions computed by applying f to an event.
create f
f
val dispatch : event -> 'a t -> 'a
The DFA uses dispatch e d to find the transition in d for e.
dispatch e d
d
e