Radix.rpm
You're seeing just the function
rpm
, go back to Radix module for more information.
Specs
Get all {k,v}
-pairs where key is a prefix of k
.
Example
iex> elements = [
...> {<<1, 1>>, 16},
...> {<<1, 1, 0>>, 24},
...> {<<1, 1, 0, 0>>, 32},
...> {<<1, 1, 1, 1>>, 32}
...> ]
iex> t = new(elements)
iex> rpm(t, <<1, 1, 0>>)
[{<<1, 1, 0, 0>>, 32}, {<<1, 1, 0>>, 24}]
#
iex> rpm(t, <<1, 1, 1>>)
[{<<1, 1, 1, 1>>, 32}]
#
iex> rpm(t, <<2>>)
[]