Returns state transitions based on a list of strings. The last string is the terminal state. A -> B -> C -> D
See also: fromListBidirectional
const transitions = fromList([`a`, `b`, `c`, `d`]);// Object state machine with eventsconst sm = new StateMachine.WithEvents(transitions);// OR, immutable state machineconst sm = StateMachine.init(transitions); Copy
const transitions = fromList([`a`, `b`, `c`, `d`]);// Object state machine with eventsconst sm = new StateMachine.WithEvents(transitions);// OR, immutable state machineconst sm = StateMachine.init(transitions);
Rest
List of states
MachineDescription
Returns state transitions based on a list of strings. The last string is the terminal state. A -> B -> C -> D
See also: fromListBidirectional