match · exercise 1 of 1 · free preview
The game so far · chapter 21
Right now: The radio mast is silent. Short tokens arrive, and nothing decodes them.
This chapter's mission: Decodes radio commands. Work through the exercises, then your own code brings it to life.
match picks a branch from a value: case "N": runs when the value is N. _ is the default.
Match code (it is "N"). Print north for N, south for S, and unknown otherwise.