Documentation ¶
Index ¶
- func Concat[V any](v1 []V, v2 []V) []V
- func Contains[V any](v []V, a func(index int, v1 V) bool) bool
- func Every[V any](v []V, a func(index int, v1 V) bool) bool
- func Fill[V any](v []V, valueToBeFilled V, pos1 int, pos2 int) bool
- func Filter[V any](v []V, a func(index int, v1 V) bool) []V
- func FindAll[V any](v []V, a func(index int, v1 V) bool) []V
- func FindAny[V any](v []V, a func(index int, v1 V) bool) *V
- func ForEach[V any](v []V, a func(index int, v1 V))
- func GroupBy[T comparable, V any](v []V, a func(v1 V) map[T]V) map[T][]V
- func Map[T any, V any](v []V, a func(index int, v1 V) T) []T
- func Reduce[T comparable, V any](v []V, a func(v1 V) map[T]V) map[T]V
- func SplitN[V any](v []V, n int) [][]V
- func Sum[V int64 | int32 | int | float64 | float32](v []V) V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GroupBy ¶
func GroupBy[T comparable, V any](v []V, a func(v1 V) map[T]V) map[T][]V
func Reduce ¶
func Reduce[T comparable, V any](v []V, a func(v1 V) map[T]V) map[T]V
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.