shorten()

Data / Array Functions

Description

Decreases a std::vector by one element. Removes the last element.

Syntax

std::vector shorten(std::vector arr)

Parameters

NameTypeDescription
arrstd::vectorthe vector to shorten

Returns

std::vector

Related

Under the Hood

Implementation in Processing.h / Processing.cpp:

Loading...