Documentation ¶
Index ¶
- func Filter[T any](c []T, ff func(T) bool) []T
- func Group[KT comparable, T any](c []T, groupFunc func(T) KT) [][]T
- func Map[TI any, TO any](c []TI, mf func(TI) TO) []TO
- func MapMap[KTI comparable, VTI any, TO any](c map[KTI]VTI, mf func(KTI, VTI) TO) []TO
- func Not[T comparable](v T) func(T) bool
- func Reduce[TI any, TO any](c []TI, init TO, rf func(acc TO, next TI) TO) TO
- func Sort[T any](c []T, sf func(a T, b T) bool) []T
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Group ¶
func Group[KT comparable, T any](c []T, groupFunc func(T) KT) [][]T
func MapMap ¶ added in v0.4.0
func MapMap[KTI comparable, VTI any, TO any](c map[KTI]VTI, mf func(KTI, VTI) TO) []TO
func Not ¶ added in v0.2.0
func Not[T comparable](v T) func(T) bool
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.