defmodule List do def last(list) end
Returns the last element in list.
list
Returns nil if list is empty.
nil