Description
Actual:
gremlin> graph = TinkerFactory.createModern() ==>tinkergraph[vertices:6 edges:6] gremlin> g = graph.traversal() ==>graphtraversalsource[tinkergraph[vertices:6 edges:6], standard] gremlin> g.V().valueMap() ==>[name:[marko],age:[29]] ==>[name:[vadas],age:[27]] ==>[name:[lop],lang:[java]] ==>[name:[josh],age:[32]] ==>[name:[ripple],lang:[java]] ==>[name:[peter],age:[35]] gremlin> g.V().map(union(values('name'), values('lang').fold()).fold()) ==>[marko,[]] ==>[[],vadas] ==>[lop,[java]] ==>[[],josh] ==>[ripple,[java]] ==>[[],peter]
Expected:
gremlin> g.V().map(union(values('name'), values('lang').fold()).fold()) ==>[marko,[]] ==>[vadas,[]] ==>[lop,[java]] ==>[josh,[]] ==>[ripple,[java]] ==>[peter,[]]
List reference: https://groups.google.com/forum/#!topic/gremlin-users/L_fESS6ta0A