Iptrie.drop
You're seeing just the function
drop
, go back to Iptrie module for more information.
Specs
Drops given prefixes
from trie
using an exact match.
If a given prefix does not exist in trie
it is ignored.
Example
# drop 2 existing prefixes and ignore the third
iex> t = new([{"1.1.1.0/24", 1}, {"2.2.2.0/24", 2}, {"11-22-33-00-00-00/24", 3}])
iex> t2 = drop(t, ["1.1.1.0/24", "11-22-33-00-00-00/24", "3.3.3.3"])
iex> for pfx <- keys(t2), do: "#{pfx}"
["2.2.2.0/24"]