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.
Click to show internal directories.
Click to hide internal directories.