Pop

Takes the last element out of an array.

Node id array/pop

The Pop node has two outputs: element, the last element of array, and array, a new array with the rest.

Inputs

NameTypeDefaultNotes
arrayArray<T>—generic

Outputs

NameTypeNotes
elementTgeneric
arrayArray<T>generic

Behaviour

  • A new array. The connected array is unchanged.

Errors

  • The array must not be empty (nothing connected counts as empty).
  • Push: adds an element at the end.
  • Shift: takes out the first element.
  • Pull: takes out the element at any index.
© 2026 Wirepaint