Kernel.put_elem/3

defmodule Kernel do
  def put_elem(tuple, index, value)
end

Puts value at the given zero-based index in tuple.