Skip to content

SegmentedKey = readonly string[]

Defined in: packages/trie/src/uncompressed-segmented-trie.ts:38

A segmented-trie key: an ordered sequence of string tokens, one per trie level.

Splitting a delimiter-separated string into segments is the caller’s decision, which keeps the delimiter and any normalization such as lowercasing out of the structure. It also keeps keys unambiguous: joining back with a delimiter cannot tell ['a_b', 'c'] from ['a', 'b_c'], while the segment arrays stay distinct.