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 User Guide.
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 the given |
|
Lists all loaded modules |
|
Recompiles and reloads the given |
|
Prints a list of all commands and returned values for this session |
|
Retrieves the |
|
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 ...
Get Introducing Elixir, 2nd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.