ArrayCopy(
array:source,
[int:index1],
[int:index2]
)
→ array
Creates a new copy of an existing array.
By default the entire array is copied. You can optionally specify a range of elements to copy with the index parameters.
If only index1 is specified, the array is copied from that element to the end.
Examples:
arr = ArrayCreate(1,2,3,5,8,13,21);
arr2 = ArrayCopy(arr, 2, 4);
Output(arr2);
-> {3, 5, 8}
See also:
ArrayCreate
ArrayErase
ArrayGet
ArrayPop
ArrayPush
ArrayRev
ArraySet
ArraySort