Closed ramenbytes closed 4 years ago
Expected:
(range -1/4 2/4 2/4) => #(-1/4 1/4)
Actual:
(range -1/4 2/4 2/4) => #(-1/4)
Relevant expression is on line 189 of range.lisp:
range.lisp
(floor (abs (/ (- stop start) step)))
Changing it to (ceiling (abs (/ (- stop start) step))) yields the expected value, though I haven't exhaustively tested it beyond some poking in the repl.
(ceiling (abs (/ (- stop start) step)))
Expected:
Actual:
Relevant expression is on line 189 of
range.lisp
:Changing it to
(ceiling (abs (/ (- stop start) step)))
yields the expected value, though I haven't exhaustively tested it beyond some poking in the repl.