exercism/elixir/take-a-number/HINTS.md

1.6 KiB

Hints

General

1. Start the machine

2. Report the machine state

3. Give out numbers

  • This step is conceptually the same as the previous step. The only difference is the need to update the machine's state.

4. Stop the machine

  • This step doesn't require sending any messages as a response.
  • A process will exit if it has no more code to execute.
  • This is a base case of the recursive function.

5. Ignore unexpected messages

  • This step doesn't require sending any messages as a response.
  • You can use _ to match all messages that didn't match previous patterns.