sort

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MapEntry

type MapEntry[K comparable, V any] struct {
	Key   K
	Value V
}

type MapEntrySlice

type MapEntrySlice[K comparable, V any] []MapEntry[K, V]

func SliceFromMap

func SliceFromMap[K comparable, V any](m map[K]V) MapEntrySlice[K, V]

func (MapEntrySlice[K, V]) Sort added in v0.3.0

func (s MapEntrySlice[K, V]) Sort(cmp func(a, b MapEntry[K, V]) int) MapEntrySlice[K, V]

Jump to

Keyboard shortcuts

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