4 ms·
You can do variadic args, you just have to explicitly label the type in both arguments for some reason, like you did for the non-generic version: https://go.dev
by Groxx 4y ago
You can do variadic args, you just have to explicitly label the type in both arguments for some reason, like you did for the non-generic version: https://go.dev/play/p/L6psz_WdETM https://go.dev/play/p/L6psz_WdETM
(I'm aware it's not actually using the varargs reasonably, typing code on a phone is a pain)
- CraigJPerry 4y agoHa! This is awesome, thank you