Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-3008

Update concat() to accept traversal varargs and remove special treatment of inject child traversals

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 3.7.0
    • 3.7.1
    • process

    Description

      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:

      gremlin> g.inject("a").concat(inject("b"))
      ==>aa

      Attachments

        Activity

          People

            xiazcy Yang Xia
            xiazcy Yang Xia
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: