Returns a machine description based on a list of strings. Machine can go back and forth between states: A <-> B <-> C <-> D
See also fromList.
const transitions = fromListBidirectional([`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 = fromListBidirectional([`a`, `b`, `c`, `d`]);// Object state machine with eventsconst sm = new StateMachine.WithEvents(transitions);// OR, immutable state machineconst sm = StateMachine.init(transitions);
Rest
Returns a machine description based on a list of strings. Machine can go back and forth between states: A <-> B <-> C <-> D
See also fromList.