Values creates an array of the map values.
(in map[K]V)
| 15 | |
| 16 | // Values creates an array of the map values. |
| 17 | func Values[K comparable, V any](in map[K]V) []V { |
| 18 | result := make([]V, 0, len(in)) |
| 19 | |
| 20 | for _, v := range in { |
| 21 | result = append(result, v) |
| 22 | } |
| 23 | |
| 24 | return result |
| 25 | } |
no outgoing calls
searching dependent graphs…