exercism/elixir/need-for-speed/HINTS.md

1.4 KiB

Hints

General

1. Fix compilation error Race.__struct__/0 is undefined

  • An alias can be created with the alias special form.

2. Fix compilation error Car.__struct__/0 is undefined

  • An alias can be created with the alias special form.
  • The alias special form accepts an :as option.

3. Fix compilation error undefined function puts/1

  • Functions can be imported with the import special form.
  • The import special form accepts an :only option. Its value should be a keyword list with function name as keys and function arities as values.

4. Fix compilation error undefined function default_color/0

  • Functions can be imported with the import special form.
  • The import special form accepts an :except option. Its value should be a keyword list with function name as keys and function arities as values.