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(originalArray) . @webref data:array functio
(boolean[] list)
| 7780 | * @see PApplet#expand(boolean[]) |
| 7781 | */ |
| 7782 | static public boolean[] shorten(boolean[] list) { |
| 7783 | return subset(list, 0, list.length-1); |
| 7784 | } |
| 7785 | |
| 7786 | static public byte[] shorten(byte[] list) { |
| 7787 | return subset(list, 0, list.length-1); |