Elixir List

[Solved] Elixir List | Elixir - Code Explorer | yomemimo.com
Question : elixir list

Answered by : nguyen-quang-huy

iex> [1, "two", 3, :four]
[1, "two", 3, :four]
iex> [1, 2, 3] ++ [4, 5, 6]
[1, 2, 3, 4, 5, 6]
iex> [1, true, 2, false, 3, true] -- [true, false]
[1, 2, 3, true]
iex> [head | tail] = [1, 2, 3]
iex> head
1
iex> tail
[2, 3]

Source : https://hexdocs.pm/elixir/List.html | Last Update : Thu, 30 Dec 21

Answers related to elixir list

Code Explorer Popular Question For Elixir