Documentation ¶
Index ¶
- type Element
- type Set
- func (set Set) Any() Element
- func (set Set) Contains(element Element) bool
- func (set Set) Delete(element Element)
- func (set Set) Empty() bool
- func (set Set) Insert(element Element)
- func (set Set) InsertAll(other Set)
- func (set Set) SafeInsert(element Element) error
- func (set Set) SafeInsertAll(other Set) error
- func (set Set) Size() int
- func (set Set) ToArray() []Element
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Set ¶
Set is type for a set of elements identified by their names
func (Set) SafeInsert ¶
SafeInsert inserts element to a set If the same element was already in the set nothing is done If element with the same name already was in the set an error is returned
func (Set) SafeInsertAll ¶
SafeInsertAll inserts all elements from an other set to a given set If at least one of the elements in the given set has the same name as of one the elements of the given set and is different from it an error is returned an the given set remains unchanged
Click to show internal directories.
Click to hide internal directories.