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 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 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}]