[ https://issues.apache.org/jira/browse/GROOVY-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17680980#comment-17680980 ]
ASF GitHub Bot commented on GROOVY-7319: ---------------------------------------- paulk-asert opened a new pull request, #1849: URL: https://github.com/apache/groovy/pull/1849 Inspiration from Yu Kobayashi (https://github.com/groovy/groovy-core/pull/616 from 2015) Currently IntBinaryOperator and IntUnaryOperator are used instead of introducing the proposed IntComparator class (it's not a perfect abstraction but saves us creating additional classes.). Feedback welcome. > Add primitive array min() and max() > ----------------------------------- > > Key: GROOVY-7319 > URL: https://issues.apache.org/jira/browse/GROOVY-7319 > Project: Groovy > Issue Type: Improvement > Components: groovy-jdk > Reporter: Yu Kobayashi > Priority: Major > > I added a package groovy.util.function. > This is similar to java.util.function of Java 8. > I added IntComparator, LongComparator, ..., to this package. > I did not use Comparator because IntComparator is faster than Comparator. > If I use Comparator, Java will create Integer instances every time. > The pull request is https://github.com/groovy/groovy-core/pull/616 -- This message was sent by Atlassian Jira (v8.20.10#820010)