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

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

    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

          People

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

            Dates

              Created:
              Updated:
              Resolved: