arrayList

open fun <T> arrayList(n: Int): List<T>

Create a 1D array (using an ArrayList).

The size of the 1d array is n.


open fun <T> arrayList(x: Int, y: Int): List<List<T>>

Create a 2D array (using ArrayLists). The result is an array list of columns, where each item in each column is null.

The size of the 2d array is (x,y)


open fun <T> arrayList(x: Int, y: Int, z: Int): List<List<List<T>>>

Create a 3D array (using ArrayLists). The result is an array list of columns, where each item in each column is null.

The size of the 3d array is (x,y,z).