This lesson is for subscribers
You've completed the free preview. Subscribe to unlock every lesson in every course.
Write a transition function that takes the current state and an event, returning the next state.
You've completed the free preview. Subscribe to unlock every lesson in every course.