Radix.get

You're seeing just the function get, go back to Radix module for more information.
Link to this function

get(tree, key, default \\ nil)

View Source

Specs

get(tree(), key(), any()) :: {key(), value()} | any()

Returns the key,value-pair whose key equals the given search key, or default.

If key is not a bitstring or not present in the radix tree, default is returned. If default is not provided, nil is used.

Example

iex> elements = [{<<1, 1>>, 16}, {<<1, 1, 1>>, 24}, {<<1, 1, 1, 1>>, 32}]
iex> t = new(elements)
iex> get(t, <<1, 1, 1>>)
{<<1, 1, 1>>, 24}
iex> get(t, <<1, 1>>)
{<<1, 1>>, 16}
iex> get(t, <<1, 1, 0::1>>)
nil
iex> get(t, <<1, 1, 0::1>>, :notfound)
:notfound