List.wrap/1

defmodule List do
  def wrap(term)
end

Wraps term in a list if this is not list.

If term is already a list, it returns the list.

If term is nil, it returns an empty list.