set

package
v0.3.6 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[A comparable](set Set[A]) func(A) bool

Contains creates a predicate that will check if an element is in this set.

func SetSize

func SetSize[A comparable](s Set[A]) int

SetSize returns the size of the set.

Types

type Set

type Set[A comparable] map[A]struct{}

Set is a map with a dummy value.

Jump to

Keyboard shortcuts

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