public static double[] longToDoubleArray(
		final long[] array,
		final LongToDoubleFunction mapper
	) {
		requireNonNull(array);
		requireNonNull(mapper);

		final double[] result = new double[array.length];
		for (int i = 0; i < array.length; ++i) {
			result[i] = mapper.applyAsDouble(array[i]);
		}
		return result;
	}
Converts the given {@code long[]} {@code array} to a {@code double[]} array.

@param array the array to convert
@param mapper the mapper function applied to each {@code array} element
@return the converted array
jenetics/src/main/java/io/jenetics/util/Conversions.java