help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: cl-dolist, dolist, cl-return,


From: Stefan Monnier
Subject: Re: cl-dolist, dolist, cl-return,
Date: Tue, 07 Jul 2015 23:09:18 -0400
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux)

> Just once. Besides inefficiency, evaluating it every time would lead to
> wrong results.

Right, the question often makes sense for loop boundary computations,
but for this specific case, if you think enough about it, it makes no
sense to re-evaluate it: you'd have to use an index into the list,
and at each iteration, increment the index, recompute the list, and do
an (nth <index> <list>), which would overall be *really* inefficient.


        Stefan




reply via email to

[Prev in Thread] Current Thread [Next in Thread]