( begin auto-generated from append.xml ) Expands an array by one element and adds data to the new position. The datatype of the element parameter must be the same as the datatype of the array. When using an array of objects, the data returned from the function must be cast to the
(byte array[], byte value)
| 8518 | * @see PApplet#expand(boolean[]) |
| 8519 | */ |
| 8520 | static public byte[] append(byte array[], byte value) { |
| 8521 | array = expand(array, array.length + 1); |
| 8522 | array[array.length-1] = value; |
| 8523 | return array; |
| 8524 | } |
| 8525 | |
| 8526 | static public char[] append(char array[], char value) { |
| 8527 | array = expand(array, array.length + 1); |