Uploaded image for project: 'TinkerPop'
  1. TinkerPop
  2. TINKERPOP-2011

Use NumberHelper on choose()

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.2.9
    • Fix Version/s: 3.4.0, 3.3.4, 3.2.10
    • Component/s: process
    • Labels:
      None

      Description

      The choose()} step could use {{NumberHelper to make this easier:

      gremlin> g.V(1).choose(values('b')).option(b, constant(true)).option(none,constant(false))
      ==>true
      gremlin> g.V(1).choose(values('b')).option(1, constant(true)).option(none,constant(false))
      ==>false
      gremlin> g.V(1).choose(values('b')).option(1 as byte, constant(true)).option(none,constant(false))
      ==>true
      

      as discussed here: https://groups.google.com/d/msg/gremlin-users/4pjH7AOM72s/ohIEdABfBQAJ

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dkuppitz Daniel Kuppitz
                Reporter:
                spmallette Stephen Mallette
              • Votes:
                1 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: