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

Arguments reordered in set-unfold and bag-unfold

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



I have moved the ''comparator'' argument back to the end of the argument
list of `set-unfold` and `bag-unfold`.  I'm doing this so that all unfolds
will have the same first four arguments: the stop predicate, the mapper
procedure, the successor procedure, and the seed.

Doing this allows the creation of a generic lazy copier from any container
with a for-each procedure to any other container with an unfold procedure.
This will be included in a future SRFI.

-- 
John Cowan          http://www.ccil.org/~cowan        cowan@xxxxxxxx
Values of beeta will give rise to dom!
(5th/6th edition 'mv' said this if you tried to rename '.' or
'..' entries; see http://cm.bell-labs.com/cm/cs/who/dmr/odd.html)