android-components / mozilla.components.browser.engine.system.matcher / Trie / put

# put

`fun put(string: String): Trie` (source)
`fun put(string: ReversibleString): Trie` (source)

Adds new nodes (recursively) for all chars in the provided string.

### Parameters

`string` - the string for which a node should be added.

Return
the newly created node or the existing one.

`fun put(character: Char): Trie` (source)

Adds a new node for the provided character if none exists.

### Parameters

`character` - the character for which a node should be added.

Return
the newly created node or the existing one.