You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tinkerpop.apache.org by "Daniel Kuppitz (JIRA)" <ji...@apache.org> on 2017/02/11 15:26:41 UTC

[jira] [Created] (TINKERPOP-1630) Consider adding by(Object value)

Daniel Kuppitz created TINKERPOP-1630:
-----------------------------------------

             Summary: Consider adding by(Object value)
                 Key: TINKERPOP-1630
                 URL: https://issues.apache.org/jira/browse/TINKERPOP-1630
             Project: TinkerPop
          Issue Type: Improvement
          Components: process
    Affects Versions: 3.3.0
            Reporter: Daniel Kuppitz


I often find myself writing stuff like {{sack(assign).by(constant(1))}}. Would be nice if I could simply do {{sack(assign).by(1)}}.

{noformat}
public default GraphTraversal<S, E> by(final Object value) {
    return by(__.constant(value));
}
{noformat}

Downside: Might lead to confusion with Strings.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)