Get the last item in a list
This example shows how to get the last item in a list. Keep in mind that it is more effecient to get the head of a list than the last item when processing lists.
:c = List.last([:a, :b, :c])
# nil is returned for an empty list
nil = List.last([])
Documentation: List.last/1