zmap

package
v0.0.0-...-9840c0c Latest Latest
Warning

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

Go to latest
Published: May 31, 2024 License: MIT Imports: 1 Imported by: 5

Documentation

Overview

Package zmap implements generic functions for maps.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func KeysOrdered

func KeysOrdered[M ~map[K]V, K ordered, V any](m M) []K

KeysOrdered returns the sorted keys of the map.

func LongestKey

func LongestKey[M ~map[string]V, V any](m M) ([]string, int)

LongestKey returns the longest key in this map and the unsorted list of all keys.

Types

This section is empty.

Jump to

Keyboard shortcuts

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