( begin auto-generated from concat.xml ) Concatenates two arrays. For example, concatenating the array { 1, 2, 3 } and the array { 4, 5, 6 } yields { 1, 2, 3, 4, 5, 6 }. Both parameters must be arrays of the same datatype. When using an array of objects, the data returned from the funct
(boolean a[], boolean b[])
| 8916 | * @see PApplet#arrayCopy(Object, int, Object, int, int) |
| 8917 | */ |
| 8918 | static public boolean[] concat(boolean a[], boolean b[]) { |
| 8919 | boolean c[] = new boolean[a.length + b.length]; |
| 8920 | System.arraycopy(a, 0, c, 0, a.length); |
| 8921 | System.arraycopy(b, 0, c, a.length, b.length); |
| 8922 | return c; |
| 8923 | } |
| 8924 | |
| 8925 | static public byte[] concat(byte a[], byte b[]) { |
| 8926 | byte c[] = new byte[a.length + b.length]; |
no test coverage detected