Radix.to_list
You're seeing just the function
to_list
, go back to Radix module for more information.
Specs
Returns all key,value-pairs in tree
as a flat list.
Example
iex> new([
...> {<<1, 1, 1, 0::1>>, "1.1.1.0/25"},
...> {<<1, 1, 1, 1::1>>, "1.1.1.128/25"},
...> {<<3>>, "3.0.0.0/8"},
...> {<<1, 1, 1>>, "1.1.1.0/24"}
...> ])
...> |> to_list()
[
{<<1, 1, 1, 0::1>>, "1.1.1.0/25"},
{<<1, 1, 1>>, "1.1.1.0/24"},
{<<1, 1, 1, 1::1>>, "1.1.1.128/25"},
{<<3>>, "3.0.0.0/8"}
]