You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tinkerpop.apache.org by GitBox <gi...@apache.org> on 2021/12/14 19:11:02 UTC
[GitHub] [tinkerpop] spmallette opened a new pull request #1517: TINKERPOP-2667 Allowed fold()/addAll to merge Map objects
spmallette opened a new pull request #1517:
URL: https://github.com/apache/tinkerpop/pull/1517
https://issues.apache.org/jira/browse/TINKERPOP-2667
The following works now:
```text
gremlin> g.inject([a: 1],[b:2]).fold([], addAll)
==>[[a:1],[b:2]]
gremlin> g.inject([a: 1],[b:2]).fold([:], addAll)
==>[a:1,b:2]
```
Interestingly, this functionality used to result in an exception so it really isn't a change in behavior which means it could slip in on 3.5-dev.
VOTE +1
--
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: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] krlawrence commented on pull request #1517: TINKERPOP-2667 Allowed fold()/addAll to merge Map objects
Posted by GitBox <gi...@apache.org>.
krlawrence commented on pull request #1517:
URL: https://github.com/apache/tinkerpop/pull/1517#issuecomment-993998852
This is a lot simpler than the way we currently have people do it with `unfold/group/fold`
VOTE +1
--
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: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [tinkerpop] spmallette merged pull request #1517: TINKERPOP-2667 Allowed fold()/addAll to merge Map objects
Posted by GitBox <gi...@apache.org>.
spmallette merged pull request #1517:
URL: https://github.com/apache/tinkerpop/pull/1517
--
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: commits-unsubscribe@tinkerpop.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org