On Thu, Jan 25, 2024 at 2:32 PM Bradley Lucier <[email protected]> wrote:


> I think you want "end" to be nonnegative.  In the procedure definitions,
> you can have start=0 and end=0 and return empty vectors
>

Agreed.  This should be fixed as an erratum.

2.  vector-map!: In the implementation all vectors do not need to be the
> same length.  But does vec1 have to be the shortest? Or are the rest of
> the elements of vec1 simply unchanged? That's what the implementation
> seems to do.
>

I think it's best if we say "It is an error if vec1 contains more elements
than any other vec."  I would favor making this an erratum.

I suggest it be reworded so that
>
> Two values are returned, the newly allocated vector and the number of
> elements that satisfy pred?.
>

Agreed.  This should be fixed as an erratum.


> 1.  Every place (integer? i) is used, shouldI suggest it be (and (exact?
> i) (integer? i)) or (exact-integer? i) (if r7rs).
>

Agreed.  This should be fixed as an erratum.

Reply via email to