T[] (array of generic type)

seany seany at uni-bonn.de
Mon Nov 18 11:47:45 PST 2013


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?


More information about the Digitalmars-d-learn mailing list