Fix a bug in fibers-batch-map (and related procedures)

And add more tests.
This commit is contained in:
Christopher Baines 2024-12-27 22:14:51 +00:00
parent e8ab6f23d8
commit 4e791aff68
2 changed files with 21 additions and 1 deletions

View file

@ -79,7 +79,10 @@
(define result-vec
(make-vector vecs-length))
(let loop ((next-to-process-index 0)
(let loop ((next-to-process-index
(if (= 0 vecs-length)
#f
0))
(channel-indexes '()))
(if (and (eq? #f next-to-process-index)
(null? channel-indexes))