Appendix A. An Elixir Parts Catalog
Like every language, Elixir has drawers full of parts that are fun to peruse, and there are many more available through Erlang.
These are a few of the more common ones, all represented using Elixir calling conventions. If you want much much more, see the erlang documents.
Shell Commands
You can use most Elixir functions from the shell, but the commands shown in Table A-1 are ones that are exclusive to the shell.
| Command | Action |
|---|---|
|
Compiles the specified Erlang file. |
|
Compiles the specified file and puts object code in the directory specified by |
|
Lists files at the current location. |
|
Lists files at the specified |
|
Changes to the specified |
|
Gets the present working directory. |
|
Clears the screen. |
|
Prints list of available helpers. |
|
Prints help for the specified |
|
Loads given |
|
Lists all loaded modules. |
|
Recompiles and reloads the given |
|
Prints a list of all commands and returned values for this session. |
|
Retrieves +n+th output value from shell session. |
|
Flushes all messages sent to the shell. |
Reserved Words
There are a few Elixir terms you can’t use outside of their intended context.
The Elixir compiler will wonder what you’re trying to do if you use certain keywords as function names ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access