(params map[K]F, convert func(F) T)
| 7 | ) |
| 8 | |
| 9 | func Map[K comparable, F any, T any](params map[K]F, convert func(F) T) map[K]T { |
| 10 | into := make(map[K]T) |
| 11 | for k, item := range params { |
| 12 | into[k] = convert(item) |
| 13 | } |
| 14 | return into |
| 15 | } |
| 16 | |
| 17 | // Subset returns true if all the keys of a are present |
| 18 | // in b and have the same values. |
no test coverage detected