sortx

package
v0.0.0-...-e130382 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Asc

func Asc[E constraints.Ordered](x []E) []E

Asc sorts a slice of any ordered type in ascending order.

func BubbleSort

func BubbleSort[E constraints.Ordered](x []E) []E

func Desc

func Desc[E constraints.Ordered](x []E) []E

Desc sorts a slice of any ordered type in descending order.

func InsertSort

func InsertSort[E constraints.Ordered](x []E) []E

func IsAsc

func IsAsc[E constraints.Ordered](x []E) bool

IsAsc reports whether x is sorted in ascending order.

func IsDesc

func IsDesc[E constraints.Ordered](x []E) bool

IsDesc reports whether x is sorted in descending order.

func SelectSort

func SelectSort[E constraints.Ordered](x []E) []E

Types

This section is empty.

Jump to

Keyboard shortcuts

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