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

Daniel Kuppitz commented on TINKERPOP3-760:
-------------------------------------------

Right, actually it would be useful anywhere within the loop construct, 
{{repeat}}, {{until}} and {{emit}}. Maybe even outside the loop construct, if 
you want to know the number of iterations of the last loop.

> Make loop counter accessible within repeat()
> --------------------------------------------
>
>                 Key: TINKERPOP3-760
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-760
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>            Reporter: Daniel Kuppitz
>            Assignee: Marko A. Rodriguez
>
> Currently we can access the loop counter in a lambda:
> {code}
> .filter {it.loops() < 3}
> {code}
> Would be nice to have a step to access the counter:
> {code}
> .where(loops().is(lt(3)))
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to