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

Suminda Dharmasena commented on GROOVY-7488:
--------------------------------------------

This is relevant to depth 1st only. 

Inorder:
goto 1st node on level down
current level node
...
nth node at current level
goto last note one level down

This way if the tree you happen to be dealing with is a binary tree the normal 
binary tree in order is preserved.


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

Reply via email to