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