2 Building blocks

This chapter covers

  • Using the interactive shell
  • Working with variables
  • Organizing your code
  • Understanding the type system
  • Working with operators
  • Understanding the runtime

It’s time to start learning about Elixir. This chapter presents the basic building blocks of the language, such as modules, functions, and the type system. This will be a somewhat long, not particularly exciting tour of language features, but the material presented here is important because it prepares the stage for exploring more interesting, higher-level topics.

Before starting, make sure you’ve installed Elixir version 1.7.x and Erlang version 21. There are multiple ways of installing Elixir, and it’s best to follow the instructions from the official ...

Get Elixir in Action, Second Edition now with O’Reilly online learning.

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