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

The split() step should provide a way to split an entire string

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 3.7.2
    • 4.0.0
    • language, process
    • None

    Description

      There are many use cases where it is helpful to be able to split an entire string into an array of characters. In other query languages, passing in a null string ('') as the parameter achieves this. I believe the Gremlin step should behave the same way. For example

      Current behavior

      g.inject('Hello').split('')
      
      ['Hello']

      Proposed new behavior

      g.inject('Hello').split('')
      
      ['H','e','l','l','o']

      Attachments

        Activity

          People

            colegreer Cole Greer
            krlawrence Kelvin Lawrence
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: