container

package
v3.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Element

type Element interface{}

Element is a singleton item that goes with Set.

type Set

type Set map[Element]interface{}

Set is a basic set-like data structure.

func (Set) Intersection

func (a Set) Intersection(b Set) Set

Intersection takes two sets and returns elements common to both. Note that we throw away information about the values of the elements in b.

func (Set) Minus

func (a Set) Minus(b Set) Set

Minus returns a new set, by subtracting everything in b from a.

func (Set) Union

func (a Set) Union(b Set) Set

Union takes two sets and returns their union in a new set.

Jump to

Keyboard shortcuts

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