exercism/elixir/chessboard/HINTS.md

1.3 KiB

Hints

General

  • Read the official documentation for ranges.

1. Define the rank range

2. Define the file range

3. Transform the rank range into a list of ranks

  • Ranges implement the Enumerable protocol.
  • There is a built-in function to change an enumerable data structure to a list.

4. Transform the file range into a list of files

  • Ranges implement the Enumerable protocol.
  • There is a built-in function to change an enumerable data structure to a list while modifying its elements.
  • The bitstring special form can be used to turn a code point into a string.