sets

package
v0.0.0-...-b25b198 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2023 License: Apache-2.0 Imports: 0 Imported by: 3

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) Slice

func (set StringSet) Slice() []string

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