set

package
v0.0.0-...-41ddf2c Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2024 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func From

func From[T comparable](e collections.Enumerator[T], capacity ...int) collections.Set[T]

From creates a new set with unsorted values populated with values from the given enumerator.

The values will be returned in random order when enumeration and may have different orders per enumeration.

func New

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

New creates a new set with unsorted values.

The values will be returned in random order when enumeration and may have different orders per enumeration.

If one capacity value is given, an empty underlying map is allocated with enough space to hold the specified number of elements. The capacity may be omitted, in which case a small starting size is allocated.

func With

func With[T comparable](values ...T) collections.Set[T]

With creates a new set initialized with the given values.

The values will be returned in random order when enumeration and may have different orders per enumeration.

Types

This section is empty.

Jump to

Keyboard shortcuts

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