sets

package
v0.23.0 Latest Latest
Warning

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

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

Documentation

Overview

Package sets provides sets of different types, e.g. StringSet.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StringSet

type StringSet map[string]struct{}

func Strings

func Strings(ss ...string) StringSet

func (StringSet) Add

func (set StringSet) Add(ss ...string) StringSet

func (StringSet) Filter

func (set StringSet) Filter(f func(s string) bool) StringSet

func (StringSet) Has

func (set StringSet) Has(s string) bool

func (StringSet) Intersect

func (set StringSet) Intersect(others ...StringSet) StringSet

func (StringSet) Map

func (set StringSet) Map(f func(s string) string) StringSet

func (StringSet) Remove

func (set StringSet) Remove(ss ...string) StringSet

func (StringSet) Union

func (set StringSet) Union(sets ...StringSet) StringSet

Jump to

Keyboard shortcuts

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