Documentation ¶
Index ¶
- func All[T any](values []T, fn func(T) bool) bool
- func Any[T any](values []T, fn func(T) bool) bool
- func AnyIdx[T any](values []T, fn func(T, int) bool) bool
- func AssertEquality[T any, U any](left T, right U)
- func CopyFromWithin[T any](values *[]T, start int, end int)
- func Filter[T any](values []T, fn func(T) bool) []T
- func Fold[T any, U any](init U, values []T, fn func(T, int) U) U
- func Map[T any, U any](values []T, fn func(T) U) []U
- func Max[T Ordered](values []T) (T, error)
- func Min[T Ordered](values []T) (T, error)
- func Product[T Complex](values []T) T
- func Splice[T any](values *[]T, start int, end int, insert ...T) []T
- func Sum[T Complex](values []T) T
- func ToReversed[T any](v []T) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertEquality ¶
func ToReversed ¶
func ToReversed[T any](v []T) []T
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.