ordered

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: May 27, 2025 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AppendOrdered

func AppendOrdered[S ~[]E, E constraints.Ordered](dedupe bool, s ...S) S

func Dedupe

func Dedupe[S ~[]E, E constraints.Ordered](s S) S

Dedupe is like `slices.Dedupe()` but operates on elements conforming to `constraints.Ordered`.

func MinMax added in v0.69.0

func MinMax[T cmp.Ordered](s ...T) (min, max T)

func Union

func Union[S ~[]E, E constraints.Ordered](s ...S) S

Union returns an ordered set of deduped elements.

Types

This section is empty.

Jump to

Keyboard shortcuts

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