kcl-std → functions → pop

popFunction in std::array

Remove the last element from an array.

Returns a new array with the last element removed.

Arguments

NameTypeDescriptionRequired
array[any; 1+]The array to pop from. Must not be empty.Yes

Returns

[any]

Examples

Found a typo?