Documentation ¶
Index ¶
- type String
- func (s String) Delete(items ...string)
- func (s String) Difference(s2 sets.String) String
- func (s String) Equal(s2 String) bool
- func (s String) Has(item string) bool
- func (s *String) Insert(layerID int, items ...string)
- func (s String) Len() int
- func (s String) List() []string
- func (s String) PopRandom() string
- func (s String) Set() sets.String
- func (s String) Union(s2 String) String
- func (s String) UnsortedList() []string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type String ¶
String is a layered set implemented as a slice of sets.String.
func NewStringFromSlices ¶
NewStringFromSlices creates a String from a list of sets.
func (String) Difference ¶
Difference returns a set of objects that are not in s2
func (String) UnsortedList ¶
UnsortedList returns the slice with contents in random order, respecting layers.
Click to show internal directories.
Click to hide internal directories.