Merge pull request #717 from bjoli/patch-1

Fix bug in accumulating in (chibi loop)
This commit is contained in:
Alex Shinn 2020-11-04 21:12:42 +09:00 committed by GitHub
commit 841a8a3167
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -368,14 +368,14 @@
(accumulating (kons final i) ((var cursor) x) n . rest))
((accumulating (kons final init) ((var cursor) (expr (if check))) n . rest)
(n ((tmp-kons kons))
((cursor '() (if check (tmp-kons expr cursor) cursor)))
((cursor init (if check (tmp-kons expr cursor) cursor)))
()
()
((var (final cursor)))
. rest))
((accumulating (kons final init) ((var cursor) (expr)) n . rest)
(n ((tmp-kons kons))
((cursor '() (tmp-kons expr cursor)))
((cursor init (tmp-kons expr cursor)))
()
()
((var (final cursor)))