[−][src]Static p5_sys::global::shorten
pub static shorten: ShortenInternalType
Decreases an array by one element and returns the shortened array, maps to Array.pop().
Examples
function setup() { let myArray = ['A', 'B', 'C']; print(myArray); // ['A', 'B', 'C'] let newArray = shorten(myArray); print(myArray); // ['A','B','C'] print(newArray); // ['A','B'] }
Parameters
list
Array to shorten