[
https://issues.apache.org/jira/browse/GROOVY-7488?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14624586#comment-14624586
]
Paul King commented on GROOVY-7488:
-----------------------------------
A PR with a potential implementation (the PR also contains the GROOVY-7486
proposed change):
https://github.com/apache/incubator-groovy/pull/61
I used a Map for the options in case we want to add other options: maxDepth,
filter, nameFilter, excludes, ... but I am not proposing to add such options
yet - they can all be readily catered for with a tiny bit more work within the
Closure. Once we see some common usage patterns arising, we can work out which
options if any we might want to add.
> Depth 1st and Breath 1st taking a closure
> -----------------------------------------
>
> Key: GROOVY-7488
> URL: https://issues.apache.org/jira/browse/GROOVY-7488
> Project: Groovy
> Issue Type: Improvement
> Components: groovy-jdk
> Reporter: Suminda Dharmasena
> Priority: Minor
>
> E.g.
> n.depthFirst { level, node -> ... }
> NB: there is level
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)