sortx

package
v0.0.0-...-7ee87ef Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsSorted

func IsSorted[T constraints.Ordered](s []T) bool

func IsSortedCustom

func IsSortedCustom[T any](s []T, less func(i, j T) bool) bool

func IsSortedReverse

func IsSortedReverse[T constraints.Ordered](s []T) bool

func Sort

func Sort[T constraints.Ordered](s []T, reverse bool)

func SortCustom

func SortCustom[T any](s []T, less func(i, j T) bool)

func SortReverse

func SortReverse[T constraints.Ordered](s []T)

func SortStable

func SortStable[T constraints.Ordered](s []T)

func SortStableCustom

func SortStableCustom[T any](s []T, less func(i, j T) bool)

func SortStableReverse

func SortStableReverse[T constraints.Ordered](s []T)

Types

This section is empty.

Jump to

Keyboard shortcuts

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