Pudu programming language
Menu
API reference

Std.PrefixTrie.under

1 declaration

fn

under: &Std.PrefixTrie.PrefixTrie[V] -> Str -> Std.PrefixTrie.PrefixTrie[V]

This is a callable function.

What it does

The trie of everything under a prefix, with the prefix stripped from the

keys.

The subtree as a trie in its own right, for handing a section of a

configuration or a routing table to something that should not know where it

came from.

Read the signature

  • The text after the name is the type checked by Pudu.
  • Read arrows from left to right: inputs come first, and the final type is returned.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.PrefixTrieSearch related declarations