List.last/1

defmodule List do
  def last(list)
end

Returns the last element in list.

Returns nil if list is empty.