static <T> Vec<T[]> of(
		final T[] array,
		final Comparator<? super T> comparator,
		final ElementDistance<T[]> distance
	) {
		return new SimpleObjectVec<>(array, comparator, distance);
	}
Wraps the given array into a {@code Vec} object.

@param array the wrapped array
@param comparator the (natural order) comparator of the array elements
@param distance the distance function between two vector elements
@param <T> 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