code: public static ImmutableDoubleArray copyOf(double[] values) {
      return values.length == 0
          ? EMPTY
          : new ImmutableDoubleArray(Arrays.copyOf(values, values.length));
    }
docs: Returns an immutable array containing the given values, in order.