reference:evaluator:arraycopy

ArrayCopy(
     array:source,
     [int:index1],
     [int:index2]
)
array

Arguments

source

Existing array to copy from.

index1

Optional. Start of range of elements to copy.

index2

Optional. End of range of elements to copy.

Return value

New copy of existing array.

Description

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