You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Yang Xia (Jira)" <ji...@apache.org> on 2023/10/23 19:48:00 UTC

[jira] [Created] (TINKERPOP-3008) Update concat() to accept traversal varargs and remove special treatment of inject child traversals

Yang Xia created TINKERPOP-3008:
-----------------------------------

             Summary: Update concat() to accept traversal varargs and remove special treatment of inject child traversals
                 Key: TINKERPOP-3008
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-3008
             Project: TinkerPop
          Issue Type: Task
          Components: process
    Affects Versions: 3.7.0
            Reporter: Yang Xia


As proposed on the devlist, updating concat() to accept traversal varags.

Also to update `concat()` to not special treat `inject()` in parameters and use `TraversalUtil.apply` on it as with any other child traversals. 

So the corrected result as inject() behaves by default (The inject() step injects the incoming traverser as the first item in the stream by default) would be:
{code:java}
gremlin> g.inject("a").concat(inject("b"))
==>aa{code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)