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

Paul King updated GROOVY-11643:
-------------------------------
    Issue Type: New Feature  (was: Improvement)

> Add column, eachColumn to AGM
> -----------------------------
>
>                 Key: GROOVY-11643
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11643
>             Project: Groovy
>          Issue Type: New Feature
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>             Fix For: 5.0.0-beta-1
>
>
> For original discussions, see:
> https://lists.apache.org/thread/xv1bpgc7xp3rwp7qt627xfyd10ljcwbc
> This issue splits out two new pieces of functionality for ArrayGroovyMethods 
> that emerged while working on the other issue.
> The code:
> {code:groovy}
> matrix.column(1)
> {code}
> is a much more efficient, and arguably more intuitive, version of:
> {code:groovy}
> matrix*.getAt(1)
> {code}
> The code:
> {code:groovy}
> matrix.eachColumn {
>     // process column
> }
> {code}
> is a much more efficient and slightly clearer version of:
> {code:groovy}
> matrix.transpose().each {
>     // process column
> }
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to