MCPcopy Index your code
hub / github.com/processing/processing / splice

Method splice

core/src/processing/core/PApplet.java:8624–8632  ·  view source on GitHub ↗

( 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)

Source from the content-addressed store, hash-verified

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) {

Callers 1

insertColumnMethod · 0.95

Calls 3

arraycopyMethod · 0.80
setMethod · 0.65
getNameMethod · 0.45

Tested by

no test coverage detected