order

package
v2.2.0-alpha.13 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Order

type Order[G, K comparable, T any] interface {
	Sort(G, []T) (T, bool)
}

Order keeps the selected key while it remains in the supplied values.

func New

func New[G, K comparable, T any](compare func(T, T) int, key func(T) K) Order[G, K, T]

Jump to

Keyboard shortcuts

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