[ 
https://issues.apache.org/jira/browse/GROOVY-11643?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17948328#comment-17948328
 ] 

ASF GitHub Bot commented on GROOVY-11643:
-----------------------------------------

paulk-asert opened a new pull request, #2208:
URL: https://github.com/apache/groovy/pull/2208

   (no comment)




> Add column, eachColumn to AGM
> -----------------------------
>
>                 Key: GROOVY-11643
>                 URL: https://issues.apache.org/jira/browse/GROOVY-11643
>             Project: Groovy
>          Issue Type: Improvement
>            Reporter: Paul King
>            Assignee: Paul King
>            Priority: Major
>
> 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