[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: How to mapcar or across a list?
From: |
Emanuel Berg |
Subject: |
Re: How to mapcar or across a list? |
Date: |
Thu, 16 Jul 2015 00:36:08 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
"Pascal J. Bourguignon" <pjb@informatimago.com>
writes:
> It's always a bad idea to use eval, because eval
> evalutes in the nil environment, not in the local
> lexical envrionment.
>
> Your example works because those lists are literal,
> but then you don't need or to know the answer.
OK, what about doing `cl-dolist' which we also had in
a recent discussion?
(cl-dolist (b boolean-list-1) (when b (cl-return t))) ; t
(cl-dolist (b boolean-list-2) (when b (cl-return t))) ; nil
--
underground experts united
http://user.it.uu.se/~embe8573
- How to mapcar or across a list?, Marcin Borkowski, 2015/07/15
- Message not available
- Re: never use `eval' (was: Re: How to mapcar or across a list?), Barry Margolin, 2015/07/15
- Re: never use `eval' (was: Re: How to mapcar or across a list?), Emanuel Berg, 2015/07/15
- Re: never use `eval' (was: Re: How to mapcar or across a list?), Emanuel Berg, 2015/07/16
- Message not available
- Re: never use `eval', Pascal J. Bourguignon, 2015/07/16
- Re: never use `eval', Emanuel Berg, 2015/07/16