- enum-set-fold proc nil enum-setprocedure
The current state is initialized to nil, and proc is invoked on each element of enum-set in increasing ordinal order and the current state, setting the current state to the result. The algorithm is repeated until all the elements of enum-set have been processed. Then the current state is returned.
(enum-set-fold cons '() color-set) = (reverse (enum-set->enum-list color-set))