You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Stephen Mallette (Jira)" <ji...@apache.org> on 2020/11/13 20:01:00 UTC
[jira] [Created] (TINKERPOP-2474) withSack() Groovy translation
output could be simplified
Stephen Mallette created TINKERPOP-2474:
-------------------------------------------
Summary: withSack() Groovy translation output could be simplified
Key: TINKERPOP-2474
URL: https://issues.apache.org/jira/browse/TINKERPOP-2474
Project: TinkerPop
Issue Type: Improvement
Components: groovy
Affects Versions: 3.4.8
Reporter: Stephen Mallette
Assignee: Stephen Mallette
There is a bunch of hackery to generate:
{code}
g.withSack((java.util.function.Supplier) {1.0d}, (java.util.function.UnaryOperator) {it + 1}).
V().sack()
{code}
It would be nice if that was just:
{code}
g.withSack({1.0d}, {it + 1}).V().sack()
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)