3 ms·
You can write map but it's a lot of boilerplate and you loose types Map func(interface{}, func(interface{}) interface{}) []interface{}
by lukasm 12y ago
You can write map but it's a lot of boilerplate and you loose types
Map func(interface{}, func(interface{}) interface{}) []interface{}
- spion 12y agoYou also loose the ability to pass existing functions with your implementation of Map Map([]string{"a", "b", "c", "d"}, ToUpper)