kenhuuu commented on code in PR #2302: URL: https://github.com/apache/tinkerpop/pull/2302#discussion_r1369382783
########## docs/src/reference/the-traversal.asciidoc: ########## @@ -1140,6 +1140,24 @@ g.V().coin(1.0) link:++https://tinkerpop.apache.org/javadocs/x.y.z/core/org/apache/tinkerpop/gremlin/process/traversal/dsl/graph/GraphTraversal.html#coin-double-++[`coin(double)`] +[[combine-step]] +=== Combine Step + +The `combine()`-step (*map*) combines the elements of the incoming list traverser and the provided list argument into +one list. This is also known as appending or concatenating. This step only expects list data (array or Iterable) and +will throw an `IllegalArgumentException` if any other type is encountered (including null). This differs from the +`merge` step in that it allows duplicates to exist. + +[gremlin-groovy,modern] +---- +g.V().values("name").fold().combine(["james","jen","marko","vadas"]) Review Comment: added to all steps. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
