XEts.put

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

Specs

put(t(), any()) :: t()

Put an item or items into the table.

Examples

iex> XEts.new(:table) |> XEts.put(x: 1, y: 2) |> XEts.to_list()
[y: 2, x: 1]
Link to this function

put(tab, key, value)

Specs

put(t(), any(), any()) :: t()

Put an item into the table.

Examples

iex> XEts.new(:table) |> XEts.put(:x, 1) |> XEts.to_list()
[x: 1]