comparable

package
v0.0.0-...-0e61b49 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Set

type Set[A comparable] map[A]types.Unit

func Empty

func Empty[A comparable]() Set[A]

func Make

func Make[A comparable](xs ...A) Set[A]

func Map

func Map[A, B comparable](ss Set[A], f func(A) B) Set[B]

func (Set[A]) Add

func (ss Set[A]) Add(a A)

func (Set[A]) Delete

func (ss Set[A]) Delete(a A)

func (Set[A]) ElemType

func (Set[A]) ElemType(A)

func (Set[A]) Has

func (ss Set[A]) Has(a A) bool

func (Set[A]) Kind

func (Set[A]) Kind(SetKind)

func (Set[A]) Len

func (ss Set[A]) Len() int

func (Set[A]) String

func (ss Set[A]) String() string

type SetKind

type SetKind any

Jump to

Keyboard shortcuts

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