Increases the size of a one-dimensional array. By default, this function doubles the size of the array, but the optional newSize parameter provides precise control over the increase in size. When using an array of objects, the data returned from the function must be cast to the object ar
(boolean[] list)
| 7607 | * @see PApplet#shorten(boolean[]) |
| 7608 | */ |
| 7609 | static public boolean[] expand(boolean[] list) { |
| 7610 | return expand(list, list.length > 0 ? list.length << 1 : 1); |
| 7611 | } |
| 7612 | |
| 7613 | /** |
| 7614 | * @param newSize new size for the array |
no test coverage detected