What types does elixir have?
Elixir data types:
iex> 1 # 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
iex>
sum = fn (a, b) -> a + b end # tuple
iex> kw_list = [{:one, 1}, {:two, 2}]
# keyword list
iex> map = %{:a => 1, 2 => :b}
# map
Comments