You're seeing just the function less, go back to Iptrie module for more information.


less(t(), prefix()) :: [{prefix(), any()}]

Returns all the prefix,value-pairs whose prefix is a prefix for the given search prefix.

This returns the less specific entries that enclose the given search prefix. Note that any bitstring is always a prefix of itself. So, if present, the search key will be included in the result.


iex> ipt = new()
...> |> put("", "A25-lower")
...> |> put("", "A25-upper")
...> |> put("", "A30")
...> |> put("", "B24")
iex> less(ipt, "")
  {"", "A30"},
  {"", "A25-lower"},
iex> less(ipt, "")