We're updating the issue view to help you get more done. 

Range issues

Description

Problem
There are a number of bugs with Range which occur when the step size is 0 or where negative.

Examples

1 2 3 4 5 6 7 8 9 10 11 cljs.user=> (count (range 10 0 0)) -Infinity ;Expect Infinity cljs.user=> (nth (range 10 0 -1) -1) 11 ; Expected IndexOutOfBounds cljs.user=> (take 5 (sequence identity (range 0 10 0))) () ; Expected (0 0 0 0 0) cljs.user=> (into [] (take 5) (range 0 10 0)) [] ; Expected [0 0 0 0 0]

Environment

None

Status

Assignee

Unassigned

Reporter

Thomas Mulvaney

Labels

Approval

None

Patch

Code and Test

Priority

Major