Phoenix Web Development
上QQ阅读APP看书,第一时间看更新

Understanding the different types in Elixir

Elixir has a number of different built-in types that we'll be working within the course of building our applications. They are the following:

  • Strings (sometimes referred to as binaries)
  • Integers
  • Floats
  • Lists
  • Maps
  • Keyword lists
  • Tuples
  • Modules
  • Functions (functions themselves break into two separate types: module functions and anonymous functions)

Let's take a look at the various representations of these types and use some of the tools in IEx to understand more about what we're working with.