1.4 KiB
1.4 KiB
Hints
General
- Read about
aliasandimportin 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
aliasspecial form.
2. Fix compilation error Car.__struct__/0 is undefined
- An alias can be created with the
aliasspecial form. - The
aliasspecial form accepts an:asoption.
3. Fix compilation error undefined function puts/1
- Functions can be imported with the
importspecial form. - The
importspecial form accepts an:onlyoption. Its value should be a keyword list with function name as keys and function arities as values.