set

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Empty

func Empty[T comparable]() mutable.Set[T]

Empty instantiates Set with zero capacity.

func New

func New[T comparable](capacity int) mutable.Set[T]

New instantiates Set with a predefined capacity.

func Of

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

Of instantiates Set with predefined elements.

func Sort

func Sort[T comparable, F constraints.Ordered](s mutable.Set[T], by c.Converter[T, F]) *ordered.Set[T]

Sort sorts a Set in-place by a converter that thransforms a element to an Ordered (int, string and so on).

Types

This section is empty.

Jump to

Keyboard shortcuts

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