kcl-stdfunctionspush

pushFunction in std::array

Append an element to the end of an array.

Returns a new array with the element appended.

Arguments

NameTypeDescriptionRequired
array[any]The array which you're adding a new item to.Yes
itemanyThe new item to add to the arrayYes

Returns

[any; 1+]

Examples

Found a typo?