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