[ https://issues.apache.org/jira/browse/GROOVY-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17681167#comment-17681167 ]
Paul King commented on GROOVY-7319: ----------------------------------- [~yukoba] I know it has been a long time but I reopened a PR partially based on yours here: https://github.com/apache/groovy/pull/1850 Let me know if you have any feedback. > 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 > Assignee: Paul King > 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)