1.4 KiB
1.4 KiB
Hints
General
- Read about
alias
andimport
in the Getting Started guide. - Read about module composition on elixirschool.com.
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.