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

Use NumberHelper on choose()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 3.2.9
    • 3.4.0, 3.3.4, 3.2.10
    • process
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: