Radix.drop
You're seeing just the function
drop
, go back to Radix module for more information.
Specs
Drops the given keys
from the radix tree
using an exact match.
Any key
's that don't exist in the tree
, are ignored.
Example
iex> elms = [{<<1, 1>>, 16}, {<<1, 1, 0>>, 24}, {<<1, 1, 1, 1>>, 32}]
iex> t = new(elms)
iex> t
{0, {23, [{<<1, 1, 0>>, 24}, {<<1, 1>>, 16}],
[{<<1, 1, 1, 1>>, 32}]
},
nil}
iex> drop(t, [<<1, 1>>, <<1, 1, 1, 1>>])
{0, [{<<1, 1, 0>>, 24}], nil}