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