Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
func Map[E, V any](slice []E, f func(E) V) []V
Map applies a provided function f to each element in the input slice and returns a slice of modified values.
func ToKeySet ¶
func ToKeySet[E comparable](slice []E) map[E]struct{}
ToKeySet converts a slice of elements into a set (represented as a map with empty structs). This function ensures that all elements in the resulting map are unique.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.