[go: up one dir, main page]

sliceset

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2018 License: BSD-2-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package sliceset provides a convenient []int set wrapper to aid in testing and benchmarks, and to serve as an example for those in need of a (concrete) abstraction for simplifying code. It is not intended for direct reuse.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BoolOp

type BoolOp func(sort.Interface, int) bool

type Set

type Set []int

func (Set) Copy

func (s Set) Copy() Set

func (Set) Diff

func (s Set) Diff(t Set) Set

func (Set) Do

func (s Set) Do(op set.Op, t Set) Set

func (Set) DoBool

func (s Set) DoBool(op BoolOp, t Set) bool

func (Set) Inter

func (s Set) Inter(t Set) Set

func (Set) IsEqual

func (s Set) IsEqual(t Set) bool

func (Set) IsInter

func (s Set) IsInter(t Set) bool

func (Set) IsSub

func (s Set) IsSub(t Set) bool

func (Set) IsSuper

func (s Set) IsSuper(t Set) bool

func (Set) Len

func (s Set) Len() int

func (Set) Less

func (s Set) Less(i, j int) bool

func (Set) Swap

func (s Set) Swap(i, j int)

func (Set) SymDiff

func (s Set) SymDiff(t Set) Set

func (Set) Union

func (s Set) Union(t Set) Set

func (Set) Uniq

func (s Set) Uniq() Set

Jump to

Keyboard shortcuts

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