[iterate-devel] Iteration on multiple lists sequentially
William Halliburton
whalliburton at gmail.com
Fri May 28 01:21:57 UTC 2010
Thanks for the advice Dan. I took it to heart. Was, most probably, a
case of premature optimization. Hoping for "here ya go, use this" or
the joy of creating my first iterate generator. I just converted my
20,000 LOC project from loop to iterate and, wow, just give me some
more cool-aid, i'm hooked!
On 5/26/10, Daniel Weinreb <dlw at itasoftware.com> wrote:
> 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 at common-lisp.net
>> http://common-lisp.net/mailman/listinfo/iterate-devel
>>
>
More information about the iterate-devel
mailing list