SimpleStateMachine is a minimalistic approach to write State Machines which operate on a list of inputs.
SimpleStateMachine
Represents the matched input and all data to be passed between state machine loops
A simple State Machine operating on a list of input values, a map of transition definitions and an accumulator.
Runs the state machine by finding and executing transitions