PHP » GoLang |
login |
register |
about
|
array_fliparray_flip[code] func ArrayFlip(m map[interface{}]interface{}) map[interface{}]interface{} { n := make(map[interface{}]interface{}) for i, v := range m { n[v] = i } return n } [/code] |