XEts.insert

You're seeing just the function insert, go back to XEts module for more information.
Link to this function

insert(tab, item)

Specs

insert(t(), any()) :: t()
insert(tab(), any()) :: any()

Insert an item into the table.

Examples

iex> XEts.new(:table) |> XEts.insert({:x, 5}) |> XEts.to_list()
[{:x, 5}]

iex> tab = XEts.new(:table) |> Map.get(:tab)
iex> XEts.insert(tab, {:x, 5})
iex> XEts.to_list(tab)
[{:x, 5}]
Link to this function

insert(tab, key, meta)

Specs

insert(t(), any(), meta()) :: t()
insert(tab(), any(), meta()) :: any()

Insert an item into the table given metadata.

Examples

iex> tab = XEts.new(:table)
iex> tab |> XEts.insert({:x, 5}, XEts.get_meta(tab)) |> XEts.to_list()
[{:x, 5}]