XEts.match_delete

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

match_delete(tab, pattern)

Specs

match_delete(t(), any()) :: t() | boolean()
match_delete(tab(), any()) :: any()

Match an item in the table and delete it.

Examples

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

match_delete(tab, pattern, meta)

Specs

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

Match an item in the table and delete it given metadata.

Examples

iex> tab = XEts.new(:table) |> XEts.insert(x: 1, y: 2)
iex> tab |> XEts.match_delete({:x, :_}, XEts.get_meta(tab)) |> XEts.to_list()
[{:y, 2}]