Split 1D Array

Divides an array at a specified index and returns the two portions.

The element at the specified index appears at the beginning of the second portion.

1378

Inputs/Outputs

datatype_icon

array

A 1D array of any type.

datatype_icon

index

The location that specifies where to split array. If index is negative or 0, first subarray is empty. If index is equal to or greater than the size of array, second subarray is empty.

datatype_icon

first subarray

array[0] through array[index-1].

datatype_icon

second subarray

The remaining array elements not already contained in first subarray.