Comment Comment by lilyball State machines can often be implemented with a set of functions that each handle a single state and then tail-call into the function for the next state. parent lilyball 4 years ago