MCPcopy Create free account
hub / github.com/wavetermdev/waveterm / GetMapKeys

Function GetMapKeys

pkg/util/utilfn/utilfn.go:563–569  ·  view source on GitHub ↗
(m map[K]V)

Source from the content-addressed store, hash-verified

561}
562
563func GetMapKeys[K comparable, V any](m map[K]V) []K {
564 var rtn []K
565 for key := range m {
566 rtn = append(rtn, key)
567 }
568 return rtn
569}
570
571// combines string arrays and removes duplicates (returns a new array)
572func CombineStrArrays(sarr1 []string, sarr2 []string) []string {

Callers 1

fetchBookmarkSuggestionsFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected