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

Re: Other names for ITERATE

How about "spiral" or "cycle"?
Spirals can loop back on themselves, or build up in a recursive
fashion, and the name has no other connotation that I know of.
last I heard, spiral was a word in the English language (though
cdr, ref, cond and cons are not).

Cycle is also a word but may have other connotations.

(spiral f ((x l)) (if (null? l) '() (cons (car l) (f (cdr l)))))

(cycle f ((x l)) (if (null? l) '() (cons (car l) (f (cdr l)))))