I find that two of the Gauche procedures that were dropped during the development of SRFI 121 are Really Important, and should be restored. I assume this means that a new SRFI is needed that would obsolete SRFI 121. I'd like to have it considered for a new fast-track discussion process, maybe only 30 days rather than 60 days for "SRFIs that are trivial updates to existing SRFIs"?
Under "Generator constructors":
(circular-generator arg …)
Returns an infinite generator that repeats the given arguments.
(generator->list (circular-generator 1 2 3) 10)
⇒ (1 2 3 1 2 3 1 2 3 1)
(generator->list (circular-generator 1) 5)
=> (1 1 1 1 1)
Under "Generator operations":
(gmap proc gen gen2 …)
Returns a generator that yields a value returned by proc applied to values from the given generators. The returned generator terminates when any of the given generator is exhausted, at which point all the other generators are in an undefined state.
Comments?
--
'Tis the Linux rebellion / Let coders take their place,
The Linux-nationale / Shall Microsoft outpace,
We can write better programs / Our CPUs won't stall,
So raise the penguin banner of / The Linux-nationale. --Greg Baker