( begin auto-generated from splice.xml ) Inserts a value or array of values into an existing array. The first two parameters must be of the same datatype. The array parameter defines the array which will be modified and the second parameter defines the data which will be inserted. <br/
(boolean list[],
boolean value, int index)
| 8622 | * @see PApplet#subset(boolean[], int, int) |
| 8623 | */ |
| 8624 | static final public boolean[] splice(boolean list[], |
| 8625 | boolean value, int index) { |
| 8626 | boolean outgoing[] = new boolean[list.length + 1]; |
| 8627 | System.arraycopy(list, 0, outgoing, 0, index); |
| 8628 | outgoing[index] = value; |
| 8629 | System.arraycopy(list, index, outgoing, index + 1, |
| 8630 | list.length - index); |
| 8631 | return outgoing; |
| 8632 | } |
| 8633 | |
| 8634 | static final public boolean[] splice(boolean list[], |
| 8635 | boolean value[], int index) { |
no test coverage detected