sets

package
v0.1.19 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2023 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Equal

func Equal[T comparable](i ...Set[T]) bool

Types

type Set

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

func From added in v0.1.5

func From[T comparable](v ...T) Set[T]

func FromSlice

func FromSlice[T comparable](s []T) Set[T]

func Subtract added in v0.1.16

func Subtract[T comparable](a Set[T], i ...Set[T]) Set[T]

func Sum

func Sum[T comparable](i ...Set[T]) Set[T]

func Union

func Union[T comparable](i ...Set[T]) Set[T]

func (Set[T]) ToSlice

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

Jump to

Keyboard shortcuts

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