Iptrie.delete

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

Specs

delete(t(), prefix()) :: t()

Deletes a prefix,value-pair from trie using an exact match for prefix.

If the prefix does not exist in the trie, the latter is returned unchanged.

Examples

iex> ipt = new()
...> |> put("1.1.1.0/24", "one")
...> |> put("2.2.2.0/24", "two")
iex>
iex> for pfx <- keys(ipt), do: "#{pfx}"
["1.1.1.0/24", "2.2.2.0/24"]
iex>
iex> ipt = delete(ipt, "1.1.1.0/24")
iex> for pfx <- keys(ipt), do: "#{pfx}"
["2.2.2.0/24"]