set

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Aug 30, 2026 License: GPL-3.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains[T comparable](set Set[T], e T) bool

Types

type Set

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

func FromList

func FromList[T comparable](list []T) Set[T]

func FromListMap

func FromListMap[T, V comparable](list []T, f func(T) V) Set[V]

Jump to

Keyboard shortcuts

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