( 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[])
| 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); |