DefaultStateAction

typealias DefaultStateAction<C, S, E, A, R> = C.(S, E, A?) -> R?

This represents a default action for a specific event. These action will not cause changes in state. They are internal transitions.

Parameters

C

The context: C will be available to the lambda

S

The currentState:S will be available to the lambda

E

The event: E will be available to the lambda

A

argumentType: A will be available to the lambda as the 3rd argument.