Documentation ¶
Index ¶
- func Abs[N Number](n N) N
- func All[T any](slice []T, pred Eqf[T]) bool
- func Any[T any](slice []T, pred Eqf[T]) bool
- func Max[T Ord](a, b T) T
- func MaxN[T Ord](xs ...T) T
- func Min[T Ord](a, b T) T
- func MinN[T Ord](xs ...T) T
- func Partition[T any](slice []T, comp Ordf[T], low, high int) int
- func QuickSort[T any](slice []T, comp Ordf[T])
- func SliceEqual[T comparable](a, b []T) bool
- func SliceEqualF[T any](a, b []T, comp Compf[T]) bool
- func Sort[T any](slice []T, comp Ordf[T])
- func Unique[T comparable](slice []T) bool
- func UniqueF[T any](slice []T, pred Compf[T]) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SliceEqual ¶
func SliceEqual[T comparable](a, b []T) bool
Returns true if all the elements are equals
func SliceEqualF ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.