Re: VECTOR-UNFOLD and VECTOR-TABULATE
campbell@xxxxxx 30 Mar 2004 22:28 UTC
On Thu, 19 Feb 2004 xxxxxx@bloodandcoffee.net wrote:
>
> [...]
>
> (VECTOR-UNFOLD <f> <length> <initial-seed> ...) -> [seed ...]
>
> [...]
>
Oops. That should be:
(VECTOR-UNFOLD <f> <length> <initial-seed> ...) -> vector
Since no one has objected, VECTOR-TABULATE has just been thrown into
the sewer and SRFI 43 has grown four replacement procedures:
- VECTOR-UNFOLD (as in the previous email)
- VECTOR-UNFOLD-RIGHT (VECTOR-UNFOLD, but generate the elements in
the other order)
- VECTOR-UNFOLD/INDEX (apply F to the index and then the seeds)
- VECTOR-UNFOLD-RIGHT/INDEX (a combination of VECTOR-UNFOLD/INDEX and
VECTOR-UNFOLD-RIGHT)
I'll incorporate these into the next draft & implementation, which are
Coming Soon (so that I can finalize this & SRFI 46 to leave room for
another SRFI I plan to submit soon).