[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
- cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/07
- Re: cl-dolist, dolist, cl-return,, John Mastro, 2015/07/07
- Re: cl-dolist, dolist, cl-return,,
Stefan Monnier <=
- Re: cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/08
- Re: cl-dolist, dolist, cl-return,, Stefan Monnier, 2015/07/08
- Re: cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/08
- Re: cl-dolist, dolist, cl-return,, John Mastro, 2015/07/08
- Re: cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/09
- Message not available
- Re: cl-dolist, dolist, cl-return,, Barry Margolin, 2015/07/10
- Re: cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/11
- Re: cl-dolist, dolist, cl-return,, Stefan Monnier, 2015/07/10
Re: cl-dolist, dolist, cl-return,, Emanuel Berg, 2015/07/08
- Prev by Date:
Re: cl-dolist, dolist, cl-return,
- Next by Date:
Re: cl-dolist, dolist, cl-return,
- Previous by thread:
Re: cl-dolist, dolist, cl-return,
- Next by thread:
Re: cl-dolist, dolist, cl-return,
- Index(es):