package
Version:
v1.0.3
Opens a new window with list of versions in this module.
Published: Dec 13, 2020
License: MIT
Opens a new window with license information.
Imports: 1
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package stringset provides a way to represent a collection of strings
compactly.
Search returns the index of the given string or -1 if it is not in the set.
The Set must have been created with strings in sorted order.
A Builder constructs Sets.
NewBuilder returns a new and initialized Builder.
Add adds a string to the index. Strings that are added by a single Add will
be stored together, unless they match an existing string.
Index returns the index for the given string, which must have been added
before.
Set creates the set created so far.
A Set holds a collection of strings that can be looked up by an index number.
Elem returns the string with index i. It panics if i is out of range.
Len returns the number of strings in the set.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.