[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
member (was: Re: To `boundp' or not to `boundp'?)
From: |
Emanuel Berg |
Subject: |
member (was: Re: To `boundp' or not to `boundp'?) |
Date: |
Wed, 02 Sep 2015 02:40:21 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.4 (gnu/linux) |
Barry Margolin <barmar@alum.mit.edu> writes:
> It's no more misleading than MEMBER, which
> intuitively seems like it would just return
> a boolean, but actually returns the tail of the list
> where the element was found.
I guess one can do something like this. But probably
it will only lead to even more confusion.
(defun memberp (e l)
(when (member e l) t) )
(memberp 1 '(1 2 3 4)) ; t
(memberp 0 '(1 2 3 4)) ; nil
--
underground experts united
http://user.it.uu.se/~embe8573
- Re: member returns list, (continued)
- Re: member returns list, Eli Zaretskii, 2015/09/12
- Message not available
- Re: member returns list, Pascal J. Bourguignon, 2015/09/10
- Re: member returns list, Emanuel Berg, 2015/09/11
- RE: member returns list, Drew Adams, 2015/09/06
- RE: member returns list, Drew Adams, 2015/09/06
- Message not available
- Re: member returns list, Barry Margolin, 2015/09/04
- Re: member returns list, Emanuel Berg, 2015/09/05
- member (was: Re: To `boundp' or not to `boundp'?),
Emanuel Berg <=
- Message not available
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Barry Margolin, 2015/09/02
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/02
- Message not available
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Barry Margolin, 2015/09/02
- Re: member returns list (was: Re: To `boundp' or not to `boundp'?), Emanuel Berg, 2015/09/02
- Message not available
- Re: member, Pascal J. Bourguignon, 2015/09/03
- Re: member, Emanuel Berg, 2015/09/03
Re: To `boundp' or not to `boundp'?, Stefan Monnier, 2015/09/01