Note that unless these lists are very big, the cost of doing the append isn't that high. If this code isn't executed a whole lot, it might not be worth trying to avoid the append. (Modern GC's are a lot better than old ones.)
-- Dan
William Halliburton wrote:
Hello all,
Does anyone have a generator that allows for iteration on multiple lists sequentially without creating a single list.
I'm doing this alot:
(iter (for el in (append list1 list2 list3)))
when the APPEND is really not necessary with a sufficiently smart generator like:
(iter (for el in list then list2 then list3)))
?
Thank you, Will
iterate-devel site list iterate-devel@common-lisp.net http://common-lisp.net/mailman/listinfo/iterate-devel