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

Allow fold() with addAll to work on Map

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Done
    • 3.5.1
    • 3.6.0, 3.5.2
    • process
    • None

    Description

      The following bit of Gremlin should work as a method for merging Map:

      gremlin> g.inject([a: 1],[b:2]).fold([:], addAll)
      ==>[a:1,b:2]
      

      Attachments

        Activity

          People

            spmallette Stephen Mallette
            spmallette Stephen Mallette
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: