Iptrie.lookup

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

Specs

lookup(t(), prefix()) :: {prefix(), any()} | nil

Return the prefix,value-pair, whose prefix is the longest match for given search prefix.

Returns nil if there is no match for search prefix.
Silently ignores any errors when encoding the given search prefix by returning nil.

Example