Data Types
Get familiar with different built-in data types of Elixir.
Elixir is a dynamic programming language. So, we don’t declare the type of each variable. It depends on the value it holds at each moment. In this lesson, we’ll learn more about Elixir’s basic data types: integers, floats, booleans, atoms, strings, lists, and tuples. Below is the description of available data types in Elixir.
Built-in types
Elixir’s built-in types are as follows:
- Value types:
- Arbitrary-sized integers
- Floating-point numbers
- Atoms
- Ranges
- Regular expressions
- System types:
- PIDs and ports
- References
- Collection types:
- Tuples
- Lists
- Maps
- Binaries
Get hands-on with 1400+ tech skills courses.