I am working my way through Go-By-Example and I have to say that this way of dec...
Chris Hartjes @grmpyprogrammer@grumpy-learning.com
I am working my way through Go-By-Example and I have to say that this way of declaring a function and it's parameters is not intuitive at all:
func SlicesIndex[S ~[]E, E comparable](s S, v E) int {}
I am looking at it and trying to figure out how to explain it in computer-English
"This function accepts an array and some other value you want to find inside that list and then returns the index"
Coming from PHP all I can think is "why do I need to do this"