set

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package set provides the unordered set container implementation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New[T comparable](elements []T) immutable.Set[T]

New instantiates Set and copies elements to it.

func Of

func Of[T comparable](elements ...T) immutable.Set[T]

Of instantiates Set with predefined elements.

func Sort

func Sort[T comparable, f constraints.Ordered](s immutable.Set[T], by c.Converter[T, f]) ordered.Set[T]

Sort instantiates Set and puts sorted elements to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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