-
Notifications
You must be signed in to change notification settings - Fork 3.4k
In short:
- data processing
- embedded software and systems
- network related tasks: from plain sockets to web servers and frameworks
- writing reliable, distributed, and highly available software
- numerical computing and machine learning as of late 2022
iex -S mix
inside your project's directory.
If you have OTP 20 or greater installed you can run export ERL_AFLAGS="-kernel shell_history enabled"
from
your shell's profile.
For example:
iex(1)> [27, 35, 51]
~c"\e#3"
Pretty-printing of lists is done by using Erlang's native function. It is designed to print lists as strings when all elements of the list are valid ASCII codes.
You can avoid this by appending 0
to your list, or by disabling char list printing:
iex(2)> [27, 35, 51] ++ [0]
[27, 35, 51, 0]
iex(3)> inspect [27, 35, 51], charlists: :as_lists
"[27,35,51]"
Also see this post to the Elixir-Lang mailing list for a bit more on the reasoning behind this design choice: https://groups.google.com/d/msg/elixir-lang-talk/0xxH9HxdQnU/LHgK8elhEQAJ
The Erlang VM only allows a limited set of expressions in guards. For an up to date list please read the official guards reference.