Completed
Details
Details
Assignee
Unassigned
UnassignedReporter
Devin Walters
Devin WaltersLabels
Approval
Ok
Patch
Code and Test
Priority
Affects versions
Fix versions
Created June 29, 2012 at 10:25 PM
Updated May 24, 2013 at 1:34 PM
Resolved May 24, 2013 at 1:34 PM
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.