[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cl-dolist, dolist, cl-return,
From: |
Emanuel Berg |
Subject: |
Re: cl-dolist, dolist, cl-return, |
Date: |
Wed, 08 Jul 2015 12:25:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> 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.
No, of course I don't want to re-evaluate it! I didn't
think it did re-evaluate, but I wasn't sure so
I thought about putting it in a `let' before
asking here. It is good I don't have to.
--
underground experts united
http://user.it.uu.se/~embe8573
- 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, 2015/07/07
- Re: cl-dolist, dolist, cl-return,,
Emanuel Berg <=
- 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