sort

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Bubble

func Bubble[T constraints.Ordered](arr []T) []T

func Circle

func Circle[T constraints.Ordered](arr []T) []T

Circle sorts an array using the circle sort algorithm.

func Partition

func Partition[T constraints.Ordered](arr []T, low, high int) int

func Quicksort

func Quicksort[T constraints.Ordered](arr []T) []T

Quicksort Sorts the entire array

func QuicksortRange

func QuicksortRange[T constraints.Ordered](arr []T, low, high int)

QuicksortRange Sorts the specified range within the array

func RegisterSortPreload

func RegisterSortPreload(v *vm.VM)

func Simple

func Simple[T constraints.Ordered](arr []T) []T

SimpleSort by skipping an unnecessary comparison of the first and last.

Types

This section is empty.

Jump to

Keyboard shortcuts

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