sorting

package
v0.1.28 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2023 License: Apache-2.0 Imports: 0 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func QuickSort

func QuickSort[T any](xs []T, lessThan func(l, r T) bool)

This is a generic Quicksort. You only need to pass in a predicate function that tells whether or not l is less than r. This is NOT a pure function. It mutates the underlying xs array.

Types

This section is empty.

Jump to

Keyboard shortcuts

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