Delete Item from List in Elixir

Interested in learning how to pop the last item in an Elixir list? Here's how you can do it:

1
2
iex> List.pop_at([1,2,3], -1)
{3, [1, 2]}