MCPcopy Index your code
hub / github.com/wavetermdev/waveterm / MapKeysToSorted

Function MapKeysToSorted

pkg/util/iterfn/iterfn.go:27–29  ·  view source on GitHub ↗
(m map[K]V)

Source from the content-addressed store, hash-verified

25}
26
27func MapKeysToSorted[K cmp.Ordered, V any](m map[K]V) []K {
28 return CollectSeqToSorted(maps.Keys(m))
29}

Callers 2

ParseProfilesFunction · 0.92
TestMapKeysToSortedFunction · 0.92

Calls 1

CollectSeqToSortedFunction · 0.85

Tested by 1

TestMapKeysToSortedFunction · 0.74