MCPcopy
hub / github.com/cortexlabs/cortex / StrMapKeysInt

Function StrMapKeysInt

pkg/lib/maps/string.go:71–79  ·  view source on GitHub ↗
(myMap map[string]int)

Source from the content-addressed store, hash-verified

69}
70
71func StrMapKeysInt(myMap map[string]int) []string {
72 keys := make([]string, len(myMap))
73 i := 0
74 for key := range myMap {
75 keys[i] = key
76 i++
77 }
78 return keys
79}
80
81func StrMapValuesInt(myMap map[string]int) []int {
82 values := make([]int, len(myMap))

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected