MCPcopy Index your code
hub / github.com/processing/processing / shorten

Method shorten

core/src/processing/core/PApplet.java:8574–8576  ·  view source on GitHub ↗

( begin auto-generated from shorten.xml ) Decreases an array by one element and returns the shortened array. When using an array of objects, the data returned from the function must be cast to the object array's data type. For example: SomeClass[] items = (SomeClass[]) shorten(origi

(boolean list[])

Source from the content-addressed store, hash-verified

8572 * @see PApplet#expand(boolean[])
8573 */
8574 static public boolean[] shorten(boolean list[]) {
8575 return subset(list, 0, list.length-1);
8576 }
8577
8578 static public byte[] shorten(byte list[]) {
8579 return subset(list, 0, list.length-1);

Callers 1

removeCodeMethod · 0.95

Calls 1

subsetMethod · 0.95

Tested by

no test coverage detected