is there a way to write custom functions for manipulating builtin array of any type?
such as making the following function to accept any type:
funtion doublingArraySize(array:______){
array=new ______[array.length*2];
}
intArray:int=new int[1];
floatArray:float=new float[1];
doublingArraySize(intArray);
doublingArraySize(floatArray);
//intArray and floatArray can now contains 2elements each
if not possible, is it possible to write reusable code for manipulating builtin array?