XEts.lookup

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

lookup(tab, key)

Specs

lookup(t(), any()) :: any()
lookup(tab(), any()) :: any()

Lookup an item in the table.

Examples

iex> tab = XEts.new(:table) |> XEts.insert(x: 1, y: 2)
iex> XEts.lookup(tab, :x)
[x: 1]

iex> %{tab: tab} = XEts.new(:table) |> XEts.insert(x: 1, y: 2)
iex> XEts.lookup(tab, :y)
[y: 2]
Link to this function

lookup(tab, key, meta)

Specs

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

Lookup an item in the table given metadata.

Examples

iex> tab = XEts.new(:table) |> XEts.insert(x: 1, y: 2)
iex> XEts.lookup(tab, :x, XEts.get_meta(tab))
[x: 1]