prefixIndex(
input):PrefixIndex
Defined in: packages/prefix-index/src/prefix-index.ts:26
Snapshot an iterable of strings as sorted, distinct keys. Keys compare by UTF-16 code units. Build takes expected O(n) set operations for n input keys and O(u log(u + 1)) comparisons for u distinct keys. Retained space is O(u), excluding the strings themselves. Errors from the input iterable propagate.
Parameters
Section titled “Parameters”Iterable<string>