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

Eric Milles reassigned GROOVY-11213:
------------------------------------

    Assignee: Eric Milles

> 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
>
> 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)

Reply via email to