Iptrie.empty-question-mark

You're seeing just the function empty-question-mark, go back to Iptrie module for more information.

Specs

empty?(t()) :: boolean()

Returns true if the given trie is empty, false otherwise.

Examples

 iex> t = new([{"1.1.1.1", 1}, {"11-22-33-44-55-66", 2}])
 iex> empty?(t)
 false

 iex> new() |> empty?()
 true

Specs

empty?(t(), type()) :: boolean()

Returns true if the radix tree for given type in trie is empty, false otherwise.

Example

 iex> t = new([{"1.1.1.1", 1}, {"11-22-33-44-55-66", 2}])
 iex> empty?(t, 32)
 false
 iex> empty?(t, 48)
 false
 iex> empty?(t, 128)
 true