4 ms·
The first example used this signature: func one[S []E, E any](s S) Why would you chose this signature instead of: func one[E any](s []E) This is not a r
by onionisafruit 4y ago
The first example used this signature:
func one[S []E, E any](s S)
Why would you chose this signature instead of:
func one[E any](s []E)
This is not a rhetorical question. My career veered away from go shortly after 1.18 released so I haven’t done much with generics.