rangemap

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Ascending

func Ascending[T1 constraints.Ordered, T2 any](m map[T1]T2, f func(T1, T2))

Ascending takes a map with orderable keys and invokes the given callback function with the map's key-value pairs in ascending order by key.

func Descending

func Descending[T1 constraints.Ordered, T2 any](m map[T1]T2, f func(T1, T2))

Descending takes a map with orderable keys and invokes the given callback function with the map's key-value pairs in descending order by key.

Types

This section is empty.

Jump to

Keyboard shortcuts

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