3 ms·
Typical to Go verbose style, but even that is better than nothing (example from the doc) s := []int{1, 2, 3} floats := slices.Map(s, func(i int) float6
by galkk 6y ago
Typical to Go verbose style, but even that is better than nothing (example from the doc)
s := []int{1, 2, 3}
floats := slices.Map(s, func(i int) float64 { return float64(i) })
Type inference for generic function arguments
This is a feature we are not suggesting now, but could consider for later versions of the language.