Insert in Array
 
 
 

Categories

  • Array

Description

Outputs a new array with the specified value inserted at the specified index in the input array.

The elements in the input array that are at an index greater than or equal to the specified index will be shifted by +1 in the resulting array.

Ports

Inputs

Index

The index that the new inserted value will have in the input (0-based) array. Warning: If the index is greater than the size of the input array, the value will not be inserted in the resulting array.

Value

The value to insert at the specified index in the input array.

Array

The array to modify.

Outputs

Result

The modified array containing the new value.