xmaps

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2025 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Overview

Package xmaps defines various functions useful with maps of any type.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GroupFunc

func GroupFunc[K comparable, Slice ~[]V, V any](aa Slice, f func(V) K) map[K]Slice

GroupFunc groups slice elements into a map of slices using a key function.

func SetFunc

func SetFunc[K comparable, Slice ~[]V, V any](aa Slice, f func(V) K) map[K]struct{}

SetFunc creates a set (as a map to empty structs) from a slice using a key function.

Types

This section is empty.

Jump to

Keyboard shortcuts

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