'2..2' elixir code example
Example 1: elixir "hd" programming
iex> list = [1, 2, 3]
iex> hd(list)
1
iex> tl(list)
[2, 3]
Example 2: elixir true
# in
1 in [1,2,3] ==true
iex> list = [1, 2, 3]
iex> hd(list)
1
iex> tl(list)
[2, 3]
# in
1 in [1,2,3] ==true