public static <T, U> Collector<T, ?, Optional<U>> min(Function<? super T, ? extends U> function, Comparator<? super U> comparator) {
        return collectingAndThen(minBy(function, comparator), t -> t.map(function));
    }
Get a {@link Collector} that calculates the <code>MIN()</code> function.
jOOL-java-8/src/main/java/org/jooq/lambda/Agg.java