O'Reilly logo

Learning Elixir by Kenny Ballou

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Elixir Basics – Foundational Steps toward Functional Programming

In the previous chapter, we talked about functional programming, installed Elixir, and tried a few elementary examples.

In this chapter, we are going to go into depth on the syntax and basic built-in types and operators of Elixir (and implicitly, Erlang). We are going to explore some more structural elements of Elixir code and begin our discussion of pattern matching.

Everything is an expression

We have hinted at this concept in the previous chapter, but let's discuss it in more detail here.

In Elixir, there are no statements. Everything is an expression. Let's break this down. Statements typically refer to instructions where the programmer specifies to the computer or runtime ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required