[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: VECTOR-UNFOLD and VECTOR-TABULATE

This page is part of the web mail archives of SRFI 43 from before July 7th, 2015. The new archives for SRFI 43 contain all messages, not just those from before July 7th, 2015.



On Thu, 19 Feb 2004 campbell@xxxxxxxxxxxxxxxxxx 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).