Documentation
¶
Index ¶
- func All[T any](condition func(T) bool, entry []T) bool
- func Any[T any](condition func(T) bool, entry []T) bool
- func Count[T any](entry []T, value T) (count int)
- func CountBy[T any](entry []T, condition func(T) bool) (count int)
- func Equal[T any](a, b T, cmp func(T, T) int) bool
- func Equals[T any](cmp func(T, T) int, v ...T) bool
- func Filter[T any](condition func(T) bool, entry []T) []T
- func Greater[T any](a, b T, cmp func(T, T) int) bool
- func IsDecreasing[T any](entry []T, cmp func(T, T) int, strict bool) bool
- func IsIncreasing[T any](entry []T, cmp func(T, T) int, strict bool) bool
- func IsMonotonic[T any](entry []T, cmp func(T, T) int, strict bool) bool
- func IsSorted[T any](entry []T, cmps ...func(a, b T) int) bool
- func Less[T any](a, b T, cmp func(T, T) int) bool
- func Map[E, R any](handler func(E) R, entry []E) []R
- func Maps[T, U, R any](handler func(T, U) R, entry1 []T, entry2 []U) (output []R, err error)
- func Max[T any](cmp func(T, T) int, v ...T) T
- func Min[T any](cmp func(T, T) int, v ...T) T
- func Reduce[T any](handler func(T, T) T, entry []T, initial ...T) (result T, err error)
- func Sort[T any](entry []T, cmps ...func(a, b T) int)
- func Sorted[T any](entry []T, cmps ...func(a, b T) int) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.