Skip to content

Commit

Permalink
fix range #442
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Feb 23, 2025
1 parent 90b9cce commit 56533b0
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 11 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
## 1.0.0-beta.21
### Breaking
* `(range n 0 -1)` don't include 0 like in Python [#442](https://github.com/jcubic/lips/issues/442)
### Feature
* allow to use auto-indent with Node >=18.19.0
* add metadata to the parser [#414](https://github.com/jcubic/lips/issues/414), [#416](https://github.com/jcubic/lips/issues/416)
Expand Down
4 changes: 2 additions & 2 deletions dist/std.min.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

11 changes: 5 additions & 6 deletions dist/std.scm

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified dist/std.xcb
Binary file not shown.
6 changes: 3 additions & 3 deletions lib/bootstrap.scm
Original file line number Diff line number Diff line change
Expand Up @@ -1323,9 +1323,9 @@
(cadr rest)))
(test (cond
((> i stop) (lambda (i)
(and (< step 0) (>= i stop))))
((< i stop) (lambda
(i) (and (> step 0) (< i stop))))
(and (< step 0) (> i stop))))
((< i stop) (lambda (i)
(and (> step 0) (< i stop))))
(else (lambda () false))))
(result (vector)))
(typecheck "range" i "number" 1)
Expand Down

0 comments on commit 56533b0

Please sign in to comment.