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

Allow stepping backwards with Number.step(end, with)

Agile BoardAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.0-beta-10
    • 1.0-JSR-2
    • groovy-jdk
    • None

    Description

      Number.step(end, stepwidth)
      should be the general implementation of upto() and downto().
      It should allow
      end < start with negative stepwith.
      End-of-loop check must be inverted in this case.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            phkim Kim, Pilho
            codevise Dierk König
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment