Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: Release 1.5, Release 1.4, Release 1.3, Release 1.2, Release 1.1
    • Fix versions: Release 1.6, Release 1.5
    • Labels:
    • Approval:
      Ok
    • Patch:
      Code and Test

      Description

      Problem statement: The current behavior of range is inconsistent. (range 0 9 0) has always produced (). (range 0 9 -1) has always produced (). (range 9 0 1) has always produced (). However, (range 9 0 0) produces (9 9 9 9 ...), and (range 0 0 0) produces '(0 0 0 0 ...)

      Proposal: Make the behavior of range consistent when using a step of 0 to make it produce an empty list.

      Please see attached code and patch.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              devn Devin Walters
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: