[racket-dev] Wrapping loops for TR isn't working, and the type annotations are for the wrong value
2012/8/15 Neil Toronto <neil.toronto at gmail.com>:
> Other options:
>
> 1. Raise an error when the vector isn't filled.
> 2. Return a (Vectorof (U T #f)) (better than (Vectorof (U T 0))?).
> 3. Always return a vector whose length is the number of iterations.
Or a variation of 2.:
4. Let the user supply the value to fill the vector with.
This could be relevant in cases where less than the #:length specified
number of values is produced.
> (for/vector #:length 10 ([i 5]) i)
'#(0 1 2 3 4 0 0 0 0 0)
/Jens Axel