gods: github.com/emirpasic/gods/sets Index | Files | Directories

package sets

import "github.com/emirpasic/gods/sets"

Package sets provides an abstract Set interface.

In computer science, a set is an abstract data type that can store certain values and no repeated values. It is a computer implementation of the mathematical concept of a finite set. Unlike most other collection types, rather than retrieving a specific element from a set, one typically tests a value for membership in a set.

Reference: https://en.wikipedia.org/wiki/Set_%28abstract_data_type%29

Index

Package Files

sets.go

type Set Uses

type Set interface {
    Add(elements ...interface{})
    Remove(elements ...interface{})
    Contains(elements ...interface{}) bool

    containers.Container
}

Set interface that all sets implement

Directories

PathSynopsis
hashsetPackage hashset implements a set backed by a hash table.
linkedhashsetPackage linkedhashset is a set that preserves insertion-order.
treesetPackage treeset implements a tree backed by a red-black tree.

Package sets imports 1 packages (graph) and is imported by 21 packages. Updated 2018-09-25. Refresh now. Tools for package owners.