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

ranges should support backwards iteration too

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.0-beta-3
    • None
    • None

    Description

      Both groovy.lang.Range and groovy.lang.IntRange need more testing and in particular they should support backwards navigations too.

      e.g.

      for x in 10..1

      {...}

      for x in big..small {...}

      for d in today..lastweek

      {...}

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstrachan James Strachan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: