Documentation ¶
Overview ¶
Package group provides short aliases for functions that are used to group elements retrieved by a loop
Index ¶
- func ByMultiple[T any, K comparable, V any](next func() (T, bool), keysExtractor func(T) []K, valsExtractor func(T) []V) map[K][]V
- func ByMultipleKeys[T any, K comparable, V any](next func() (T, bool), keysExtractor func(T) []K, valExtractor func(T) V) map[K][]V
- func ByMultipleValues[T any, K comparable, V any](next func() (T, bool), keyExtractor func(T) K, valsExtractor func(T) []V) map[K][]V
- func Of[T any, K comparable, V any](next func() (T, bool), keyExtractor func(T) K, valExtractor func(T) V) map[K][]V
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ByMultiple ¶
func ByMultiple[T any, K comparable, V any](next func() (T, bool), keysExtractor func(T) []K, valsExtractor func(T) []V) map[K][]V
ByMultiple is a short alias for loop.GroupByMultiple
func ByMultipleKeys ¶
func ByMultipleKeys[T any, K comparable, V any](next func() (T, bool), keysExtractor func(T) []K, valExtractor func(T) V) map[K][]V
ByMultipleKeys is a short alias for loop.GroupByMultipleKeys
func ByMultipleValues ¶
func ByMultipleValues[T any, K comparable, V any](next func() (T, bool), keyExtractor func(T) K, valsExtractor func(T) []V) map[K][]V
ByMultipleValues is a short alias for loop.GroupByMultipleVals
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.