algorithm

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func All

func All[T any](slice []T, comp Eqf[T]) bool

func Any

func Any[T any](slice []T, comp Eqf[T]) bool

func Max

func Max[T Ord](a, b T) T

func Max_

func Max_[T Ord](xs ...T) T

func Min

func Min[T Ord](a, b T) T

func Min_

func Min_[T Ord](xs ...T) T

func Partition

func Partition[T any](slice []T, comp Ordf[T], low, high int) int

func QuickSort

func QuickSort[T any](slice []T, comp Ordf[T], low, high int)

func SliceEqual

func SliceEqual[T any](a, b []T, comp Compf[T]) bool

func SliceEqual_

func SliceEqual_[T comparable](a, b []T) bool

func Sort

func Sort[T any](slice []T, comp Ordf[T])

func Unique

func Unique[T any](slice []T, comp Compf[T]) bool

func Unique_

func Unique_[T comparable](slice []T) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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