Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-1558

backward Array Sintax

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0-JSR-6
    • 1.1-beta-2
    • syntax
    • None

    Description

      If I use backwards range like this:

      x = "matrix"
      println x[5..0]

      I willl get : "xirtam".

      But if I select, another index:

      x = "matrix"
      println x[0, 5..0]

      The result is : mmatrix

      Notice that it "is not" in reverse order! like I select in the range.

      Attachments

        Activity

          People

            paulk Paul King
            ccadete ccadete
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: