Help us shape the future of Go! Take the 2026 Go Developer Survey

set

package module
v0.0.0-...-ceeb178 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2020 License: MIT Imports: 1 Imported by: 0

README

Set data structure

Build Status go report Documentation Coverage Status License

Documentation

Overview

Package set implements a generic set data structure.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set = genericset.Set

Deprecated. Set is a generic set for items of type interface{}. This exists for backwards compatibility; new code should use genericset.Set directly.

func Intersect

func Intersect(s1, s2 Set) Set

Deprecated. Intersect computes the intersection of two sets, returning the result in a third set. This exists for backwards compatibility; new code should call genericset.IntersectSet directly.

func New

func New(xs ...interface{}) Set

Deprecated. New returns a new genericset containing the supplied items. This exists for backwards compatibility; new code should call genericset.NewSet directly.

func Subtract

func Subtract(s1, s2 Set) Set

Deprecated. Subtract computes the subtraction of set s2 from set s1, returning the result in a third set. This exists for backwards compatibility; new code should call genericset.SubtractSet directly.

func Union

func Union(s1, s2 Set) Set

Deprecated. Union computes the set union of two sets, returning the result in a third set. This exists for backwards compatibility; new code should call genericset.UnionSet directly.

Directories

Path Synopsis
cmd
genset module

Jump to

Keyboard shortcuts

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