package
Version:
v0.0.0-...-df3943b
Opens a new window with list of versions in this module.
Published: Jul 8, 2014
License: BSD-3-Clause
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Implementation of a Set container
type Set interface {
Copy() Set
Len() int
Contains(v interface{}) bool
Add(v interface{})
Remove(v interface{}) bool
Do(f func(interface{}))
DoWhile(f func(interface{}) bool)
Iter() <-chan interface{}
Union(s Set)
Intersect(s Set)
Subtract(s Set)
Init()
IsSubset(s Set) bool
IsSuperset(s Set) bool
}
func NewSet(items ...interface{}) Set
Source Files
¶
Click to show internal directories.
Click to hide internal directories.