Documentation ¶
Index ¶
- func All(arr []bool) bool
- func Any(arr []bool) bool
- func Filter[T any](arr []T, fn func(i int, v T) bool) []T
- func GroupBy[T any, E atoms.Basic](arr []T, by func(v T) E) map[E][]T
- func GroupByOne[T any, E atoms.Basic](arr []T, keepFirst bool, by func(v T) E) map[E]T
- func IndexOf[T any](arr []T, fn func(v T) bool) int
- func Map[T any](arr []T, fn func(i int, v T) T) []T
- func MapTo[T any, E any](arr []T, fn func(i int, v T) E) []E
- func Reduce[T any, E atoms.Basic](arr []T, initValue E, fn func(i int, v T, cum E) E) E
- func Reindex[T any](arr []T, indexes []int)
- func ValueIndex[T atoms.Basic](arr []T) map[T]int
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupByOne ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.