package
Version:
v0.4.0
Opens a new window with list of versions in this module.
Published: Nov 5, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 0
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func AssociateBy[A ~[]X, X any, Y comparable](input A, assocBy func(X) Y) map[Y]X
-
func MapList[A ~[]X, X, Y any](input A, mapper func(X) Y) []Y
-
func MapMap[X ~map[A]B, Y ~map[A]C, A comparable, B, C any](input X, mapper func(A, B) C) Y
-
func Ptr[T any](v T) *T
func AssociateBy[A ~[]X, X any, Y comparable](input A, assocBy func(X) Y) map[Y]X
func MapList[A ~[]X, X, Y any](input A, mapper func(X) Y) []Y
func MapMap[X ~map[A]B, Y ~map[A]C, A comparable, B, C any](input X, mapper func(A, B) C) Y
Source Files
¶
Click to show internal directories.
Click to hide internal directories.