Documentation ¶
Overview ¶
Package group provides short aliases for grouping functions
Index ¶
- func ByMultiple[TS ~[]T, T any, K comparable, V any](elements TS, keysExtractor func(T) []K, valsExtractor func(T) []V) map[K][]V
- func ByMultipleKeys[TS ~[]T, T any, K comparable, V any](elements TS, keysExtractor func(T) []K, valExtractor func(T) V) map[K][]V
- func ByMultipleValues[TS ~[]T, T any, K comparable, V any](elements TS, keyExtractor func(T) K, valsExtractor func(T) []V) map[K][]V
- func Of[TS ~[]T, T any, K comparable, V any](elements TS, keyExtractor func(T) K, valExtractor func(T) V) map[K][]V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByMultiple ¶ added in v0.0.7
func ByMultiple[TS ~[]T, T any, K comparable, V any](elements TS, keysExtractor func(T) []K, valsExtractor func(T) []V) map[K][]V
ByMultiple is a short alias for slice.GroupByMultiple
func ByMultipleKeys ¶ added in v0.0.7
func ByMultipleKeys[TS ~[]T, T any, K comparable, V any](elements TS, keysExtractor func(T) []K, valExtractor func(T) V) map[K][]V
ByMultipleKeys is a short alias for slice.GroupByMultipleKeys
func ByMultipleValues ¶ added in v0.0.7
func ByMultipleValues[TS ~[]T, T any, K comparable, V any](elements TS, keyExtractor func(T) K, valsExtractor func(T) []V) map[K][]V
ByMultipleValues is a short alias for slice.GroupByMultipleVals
func Of ¶
func Of[TS ~[]T, T any, K comparable, V any](elements TS, keyExtractor func(T) K, valExtractor func(T) V) map[K][]V
Of is a short alias for slice.Group
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.