stablesort

package
v0.0.19 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package stablesort provides stable sorting of cloned slice elements

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asc added in v0.0.11

func Asc[T cmp.Ordered, TS ~[]T](elements TS) TS

Asc makes clone of stable sorted orderable elements

func By

func By[T any, O cmp.Ordered, TS ~[]T](elements TS, orderConverter func(T) O) TS

By makes clone of stable sorted elements by converting them to Ordered values and applying the operator <

func ByLess added in v0.0.6

func ByLess[T any, TS ~[]T](elements TS, comparer func(T, T) int) TS

ByLess makes clone and atanle sorts elements using a function that checks if an element is smaller than the others

Types

This section is empty.

Jump to

Keyboard shortcuts

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