Errata for SRFI 133: Vector Library (R7RS-compatible) Arthur A. Gleckler (02 Sep 2016 22:33 UTC)
Re: Errata for SRFI 133: Vector Library (R7RS-compatible) Shiro Kawai (07 Sep 2016 04:44 UTC)
Re: Errata for SRFI 133: Vector Library (R7RS-compatible) Arthur A. Gleckler (07 Sep 2016 05:40 UTC)

Errata for SRFI 133: Vector Library (R7RS-compatible) Arthur A. Gleckler 02 Sep 2016 22:33 UTC

I've just published fixes for errata for SRFI 133 submitted
by Jeremy Steward.  They have been approved by John Cowan,
the author of SRFI 133, so they have now been incorporated
into the public document.  I added a note to the Status
section, too.

Here are the comments Jeremy submitted with his pull
request:

  Hey Arthur, I've talked to John and we discussed that
  vector-cumulate should have the same signature as
  vector-fold and fold in terms of argument order.
  Basically the problem was that vector-cumulate had the
  following signature:

  (vector-cumulate proc vec knil)

  when it should have had the signature

  (vector-cumulate proc knil vec)

  This is more consistent, since "cumulate" is just
  accumulating the step-wise results of a fold into a single
  collection; therefore, it makes sense to be able to swap
  out folds and cumulates without changing the remaining
  order of arguments.  John already pre-approved this as an
  errata (see attached image) and I've made the correct
  changes to both SRFI docs and code.  I don't think this
  should impact people too much, as it only rearranges the
  argument order and is otherwise a very minor errata to
  distribute.  Thanks again for all the help.

  Commit Summary

  * Fixes vector-cumulate to have same signature as fold
  * Fix errata.
  * Regenerate "index.html".

  File Changes

  * M index.html (3)
  * M srfi-133.html (4)
  * M vectors/vectors-impl.scm (4)

  I should also note I forgot to pull upstream from the last
  errata fix so things look slightly out of order now.  My
  apologies as the git history is gonna be a little weird
  when merging this one.

Thanks, Jeremy and John.

— SRFI Editor