mlx.data.core.CharTrie.insert# CharTrie.insert(self: mlx.data._c.core.CharTrie, token: str | List[str], id: int = -1) → mlx.data._c.core.CharTrieNode# Insert a token in the trie making a new token if it doesn’t already exist. Parameters: token (str or list[char]) – The new token to be inserted given either as a string or a list of characters. id (int, optional) – The id to assign to the new token to be inserted. If negative then use num_keys() as default. Default: -1.