joe_pool_is
Well-known member
I have tried to innitialize an array all in one step, like this:
intArray() = {1, 2, 3, 4, 5}
or
intArray = {1, 2, 3, 4, 5}
or many other methods similar. Nothing seems to work. The only way I have managed to populate the elements of the array is:
intArray(0) = 1
intArray(1) = 2
intArray(2) = 3
intArray(3) = 4
intArray(4) = 5
Is there a more elegant method?
intArray() = {1, 2, 3, 4, 5}
or
intArray = {1, 2, 3, 4, 5}
or many other methods similar. Nothing seems to work. The only way I have managed to populate the elements of the array is:
intArray(0) = 1
intArray(1) = 2
intArray(2) = 3
intArray(3) = 4
intArray(4) = 5
Is there a more elegant method?