State machine, a Scala language concept
Last updated
A state machine is the use of `sealed trait` to represent all the possible states (and transitions) of a 'machine' in a hierarchical form.
There's more!
To see the rest of the Scala concept, and all our other concepts for free, Register (free).