set

package
Version: v0.0.0-...-50e663b Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisjointInts

func DisjointInts(tg, cg Int) bool

func DisjointStrings

func DisjointStrings(tg, cg String) bool

func EqualInts

func EqualInts(tg, cg Int) bool

func EqualStrings

func EqualStrings(tg, cg String) bool

func SubSetInt

func SubSetInt(super, sub Int) bool

func SubSetString

func SubSetString(super, sub String) bool

Types

type Int

type Int map[int]struct{}

func NewInt

func NewInt(d []int) Int

func NewIntFromTo

func NewIntFromTo(from, to int) Int

NewIntFromTo creates a set with values ranging from (inclusive) to (exclusive)

func UnionInt

func UnionInt(a, b Int) Int

type String

type String map[string]struct{}

func NewString

func NewString(d []string) String

func NewStringFromTo

func NewStringFromTo(from, to int) String

func UnionString

func UnionString(a, b String) String

Jump to

Keyboard shortcuts

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