Running Elixir

In this book, I show a terminal session like this:

 
$ ​echo Hello, World
 
Hello, World

The terminal prompt is the dollar sign, and the stuff you type follows. (On your system, the prompt will likely be different.) Output from the system is shown without highlighting.

iex—Interactive Elixir

To test that your Elixir installation was successful, let’s start an interactive Elixir session. At your regular shell prompt, type iex.

 
$ ​iex
 
Erlang/OTP 17 [erts-6.0] [source] [64-bit] [smp:4:4] [async-threads:10]
 
[hipe] [kernel-poll:false]
 
 
Interactive Elixir (x.y.z) - press Ctrl+C to ​exit​ (type h() ENTER ​for​ help)​​
 
iex(1)>

(The various version numbers you see will likely be different—I won’t bother to show them on subsequent ...

Get Programming Elixir now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.