[
https://issues.apache.org/jira/browse/GROOVY-11213?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Eric Milles resolved GROOVY-11213.
----------------------------------
Fix Version/s: 5.0.0-alpha-3
Resolution: Fixed
https://github.com/apache/groovy/commit/63c4682474416f04f8637c53f506dca362773ffb
> indexOf extension method for arrays
> -----------------------------------
>
> Key: GROOVY-11213
> URL: https://issues.apache.org/jira/browse/GROOVY-11213
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-jdk
> Reporter: Eric Milles
> Assignee: Eric Milles
> Priority: Minor
> Fix For: 5.0.0-alpha-3
>
>
> For cases where {{Arrays#binarySearch}} cannot be used and for consistency
> with lists, consider adding {{indexOf(element)}} extension methods for array
> types.
> Alternatives currently available:
> {code:groovy}
> Arrays.asList(array).indexOf(object)
> array.findIndexOf(array, object.&equals)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)