Basic types

  1. Basic arithmetic
  2. Booleans
  3. Atoms
  4. Strings
  5. Anonymous functions
  6. (Linked) Lists
  7. Tuples
  8. Lists or tuples?

In this chapter we will learn more about Elixir basic types: integers, floats, booleans, atoms, strings, lists and tuples. Some basic types are:

iex> 1          # integer
iex> 0x1F       # integer
iex> 1.0        # float
iex> true       # boolean
iex> :atom      # atom / symbol
iex> "elixir"   # string
iex> [1, 2, 3]  # list
iex> {1, 2, 3}  # tuple