collections

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FirstInArray

func FirstInArray[T any](m []T) T

func FirstInMap

func FirstInMap[K comparable, T any](m map[K]T) (K, T)

func GroupBy

func GroupBy[K comparable, T any](grouper func(T) K, arr []T) map[K][]T

func Map

func Map[A any, B any](a *A, f func(A) B) *B

func MapArray

func MapArray[A any, B any](a []A, f func(A) B) []B

func ToMap

func ToMap[K comparable, T any](extractor func(T) K, arr []T) map[K]T

Types

This section is empty.

Jump to

Keyboard shortcuts

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