List.duplicate/2

defmodule List do
  def duplicate(elem, count)
end

Duplicates the given element count times in a list. If count is 0, an empty list is returned.