/guava/guava/src/com/google/common/primitives/Doubles.java
int result = 1;int pos = 0;
int pos = 0;
public static double[] concat(double[]... arrays) { int length = 0; for (double[] array : arrays) { length += array.length; } double[] result = new double[length]; <extra_id_0> for (double[] array : arrays) { System.arraycopy(array, 0, result, pos, array.length); pos += array.length; } return result; }