perhaps I sohould have myself played around, but I would love to ask this :

I want to make a function, that takes ay array (whose elements can be int, string, struct, etc) and a variable of the same type, of which the array in an array.

Like function(int[] arr, int var)
or function(string[] arr, string var)

etc.

A natural choice is fuction(T)(T[] array, T var)

but i dont find much info on this type on construction, is there any material introducing me to this type of construction?

Reply via email to