3 ms·
I firmly believe that when Go introduces generics, the syntax should look like: type T1 generic type T2 generic func Map(f func(T1) T2, s []T1) []T2
by earthboundkid 13y ago
I firmly believe that when Go introduces generics, the syntax should look like:
type T1 generic
type T2 generic
func Map(f func(T1) T2, s []T1) []T2