ParentFull threadgdprrrr·Not OP, but in functional languages, state machines are often simply a function (State, Input) -> StateView on HN