package set

import "git.sr.ht/~pingoo/stdx/set"

Index

Types

type Set

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

func New

func New[T comparable](fromList []T) Set[T]

func (Set[T]) Contains

func (set Set[T]) Contains(item T) bool

func (Set[T]) ToSlice

func (set Set[T]) ToSlice() []T

Source Files

set.go

Version
v0.0.0-20240218134121-094174641f6e (latest)
Published
Feb 18, 2024
Platform
linux/amd64
Last checked
4 months ago

Tools for package owners.