Array remove at

Arrays and ranges Generic
Array remove at
Array
Array
Index 0
Element

Description

Removes and returns the element at the given index from an array in place and returns the updated array. Has execution pins (not pure). Out-of-range indices fail the pipeline.

When to use

Use Array remove at to delete a specific element from an array by position — for example, removing the first match found during a search, or popping the last element. The node mutates the array in place and also outputs the removed element so you can inspect or log it. If the index might be out of bounds, check Array length and use a Branch first.

Pins

Input pins

Pin Type Default Notes
Array generic[] The array to remove from. The element type resolves at design-time from the connected source.
Index integer 0 Zero-based index of the element to remove. Out-of-range values fail the pipeline.

Output pins

Pin Type Notes
Array generic[] The same array after the element has been removed.
Element generic The element that was removed. Type matches the array's element type.

Execution pins

Pin Direction
In Input
Out Output

Example

Remove the first element from a queue-like array. Wire the array into the Array input and leave Index at its default 0. The Element output gives you the dequeued item; the Array output is the remaining items, ready to wire back into a local variable set.

See also