set

package
Version: v0.0.0-...-df3943b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 8, 2014 License: BSD-3-Clause Imports: 0 Imported by: 0

Documentation

Overview

Implementation of a Set container

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

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

func NewSet(items ...interface{}) Set

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL