Allow internal definitions in a `for/vector' with a #:length.

Closes PR 12340.
This commit is contained in:
Eli Barzilay 2011-11-07 11:50:45 -05:00
parent bfa6b1d953
commit af3019fa5a

View File

@ -1363,7 +1363,7 @@
(let ([v (make-vector len)])
(for/fold ([i 0])
(for-clause ... #:when (< i len))
(vector-set! v i (begin body ...))
(vector-set! v i (let () body ...))
(add1 i))
v)))]))
@ -1381,7 +1381,7 @@
(let ([v (make-vector len)])
(for*/fold ([i 0])
(for-clause ... #:when (< i len))
(vector-set! v i (begin body ...))
(vector-set! v i (let () body ...))
(add1 i))
v)))]))