remove at index

This block is part of the array group and was last modified in core v13.0.8.

remove at index v13.0.8

Removes the item with the given index.

In pins 2
  • Array required
    array

    The array with the item in it.

  • Index required
    number

    The index of the item you want to remove.

Out pins 1
  • Array
    array

    The array with the item removed.

Returns a new array with the element at the given zero-based index removed. A negative or out-of-range index leaves the array UNCHANGED - no error is emitted.

A typical wiring for remove at index: the array out pin feeds length.

Studio canvas example for the remove at index block: typical wiring for remove at index.

Version history

Introduced in v13.0.8.


Back to array Return to the main group to view all sub-groups Back to array Return to the group to view all blocks within this group