collections

package
v0.0.0-...-5b16439 Latest Latest
Warning

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

Go to latest
Published: May 4, 2025 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package collections provides a set of utilities for working with collections, such as slices and maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SortedKeys

func SortedKeys[M ~map[K]V, K cmp.Ordered, V any](m M) []K

SortedKeys returns a sorted slice of keys of the input map. The keys must meet [constraints.Ordered] type constraint.

func ToStringSlice

func ToStringSlice[T any](s []T) []string

ToStringSlice converts a slice of T to a slice of strings.

Types

This section is empty.

Jump to

Keyboard shortcuts

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