Tuple.insert_at/3

defmodule Tuple do
  def insert_at(tuple, index, value)
end

Inserts an element into a tuple.

Inserts value into tuple at the given index. Raises an ArgumentError if index is negative or greater than the length of tuple. Index is zero-based.