public static <T> Stream<T> fromArray(Inspector array, Function<Inspector, T> mapper) {
        return IntStream.range(0, array.entries())
                .mapToObj(array::entry)
                .map(mapper);
    }
Create a stream from a Slime {@link Inspector} pointing to an array.
@param array the array inspector
@param mapper the function mapping to Stream elements
@return A Stream of array elements
vespajlib/src/main/java/com/yahoo/slime/SlimeStream.java