static <C extends Comparable<? super C>>
	Vec<C[]> of(final C[] array) {
		return of(
			array,
			(u, v, i) -> clamp(u[i].compareTo(v[i]), -1, 1)
		);
	}
Wraps the given array into a {@code Vec} object.

@param array the wrapped array
@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