[ 
https://issues.apache.org/jira/browse/GROOVY-7319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Paul King resolved GROOVY-7319.
-------------------------------
    Fix Version/s: 5.0.0-alpha-1
       Resolution: Fixed

Proposed PR merged. It only covers int, long and double but they are the three 
types given most focus by Java, so I have covered them first. We can always add 
more types later if there is demand.

> 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
>             Fix For: 5.0.0-alpha-1
>
>
> 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)

Reply via email to