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
| Name | Type | Default | Notes |
|---|---|---|---|
| array | Array<T> | — | generic |
Outputs
| Name | Type | Notes |
|---|---|---|
| element | T | generic |
| array | Array<T> | generic |
Behaviour
- A new array. The connected array is unchanged.
Errors
- The array must not be empty (nothing connected counts as empty).