How to declare a generic functions which converting a slice with type Ta to
a slice with type Tb. Like
func ConvertSlice(type Ta, Tb constraint)(ins []Ta) []Tb {...}
How to constraint a type parameter must be of an interface type?
Is it possible to define generic unnamed types?
If it is impossible, then how to define a generic map type which elements
must be an unnamed integer slice?
--
You received this message because you are subscribed to the Google Groups
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/golang-nuts/f02971c4-7e16-4f33-b919-93e7569d6571o%40googlegroups.com.