stringset

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2023 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

package stringset is a simple implementation of finite sets of strings.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set map[string]bool

func Make

func Make(els ...string) Set

func (Set) Add

func (dst Set) Add(src Set)

Precondition: dst != nil

func (Set) Clone

func (set Set) Clone() Set

func (Set) Contains

func (fst Set) Contains(snd Set) bool

func (Set) Empty

func (set Set) Empty() bool

func (Set) Has

func (set Set) Has(el string) bool

func (Set) Insert

func (set Set) Insert(el string)

Precondition: set != nil

func (Set) Intersect

func (dst Set) Intersect(src Set)

func (Set) IntersectsWith

func (fst Set) IntersectsWith(snd Set) bool

func (Set) Remove

func (set Set) Remove(el string)

func (Set) Size

func (set Set) Size() int

func (Set) Slice

func (set Set) Slice() []string

Jump to

Keyboard shortcuts

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