static <C extends Comparable<? super C>> Vec<C[]> of(
		final C[] array,
		final ElementDistance<C[]> distance
	) {
		return of(array, Comparator.naturalOrder(), distance);
	}
Wraps the given array into a {@code Vec} object.

@param array the wrapped array
@param distance the array element distance measure
@param <C> the array element type
@return the given array wrapped into a {@code Vec} object.
@throws NullPointerException if one of the arguments is {@code null}
@throws IllegalArgumentException if the {@code array} length is zero
jenetics.ext/src/main/java/io/jenetics/ext/moea/Vec.java