group

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: May 26, 2023 License: MIT Imports: 1 Imported by: 1

Documentation

Overview

Package group provides short aliases for grouping functions

Index

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.

Jump to

Keyboard shortcuts

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