group

package
v0.0.12 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 31, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package group provides short aliases for functions that are used to group elements retrieved by a loop

Index

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

func Of

func Of[T any, K comparable, V any](next func() (T, bool), keyExtractor func(T) K, valExtractor func(T) V) map[K][]V

Of is a short alias for loop.Group

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL