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

Marko A. Rodriguez commented on TINKERPOP3-900:
-----------------------------------------------

If you are ambivalent, why did you reply? Type type type type... Please don't 
just make comments to make comments. The more time I spend writing emails, the 
less time I have to study and develop. If you really are interested in your 
questions, instead of asking me, why don't you spend the time and write out a 
recommendation for how it should be done. Do you really want me to explain in 
English these Java questions... or can I just code it and you will see?

> Provide by(object) which compiles to by(constant(object))
> ---------------------------------------------------------
>
>                 Key: TINKERPOP3-900
>                 URL: https://issues.apache.org/jira/browse/TINKERPOP3-900
>             Project: TinkerPop 3
>          Issue Type: Improvement
>          Components: process
>    Affects Versions: 3.0.2-incubating
>            Reporter: Marko A. Rodriguez
>            Assignee: Marko A. Rodriguez
>             Fix For: 3.1.0-incubating
>
>
> Right now, this is how you can increment a sack.
> {code}
> sack{a,b -> a+1}
> {code}
> OR, lambda free:
> {code}
> sack(sum).by(constant(1))
> {code}
> I think we should make a {{by()}}-modulator that is:
> {code}
> sack(sum).by(1)
> {code}
> That is:
> {code}
> by(object) -> by(constant(0)).
> {code}
> In fact, we have an {{AbstractLambdaTraversal}} called {{ConstantTraversal}} 
> which will make this even faster (analogous to {{LoopTraversal}} being used 
> instead of {{until(loops().gt(4))}}.



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

Reply via email to