June 2022
Intermediate to advanced
130 pages
2h 45m
English
This chapter introduced the primary primitive data types in Elixir. As you work through this section, you’ll get a chance to build your own projects and put Elixir through its paces.
Elixir’s modules are all organized around data. The standard data types include atoms, Booleans, and numerics. Where possible, the first argument in a function is determined by the containing module. For example, Atom.to_string/1 takes an atom first.
Atoms represent concepts, and pattern matches are expressions that attempt to match the structure and content of data. Pattern matches work as individual expressions and also in function heads.
IEx is a great tool for exploring pieces of data and drilling into the underlying ...
Read now
Unlock full access