[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Check whether an object is an alist
From: |
Heime |
Subject: |
Re: Check whether an object is an alist |
Date: |
Wed, 18 Sep 2024 04:52:08 +0000 |
On Wednesday, September 18th, 2024 at 4:21 PM, tomas@tuxteam.de
<tomas@tuxteam.de> wrote:
> On Tue, Sep 17, 2024 at 09:25:44PM +0000, Heime wrote:
>
> [...]
>
> > > After changing to the following, I am getting validation for list
> > > element (1 2 3), even though it is not an association.
> > >
> > > (defun torium-alist-p (obj)
> > > "Return t if object OBJ is an association list (alist)."
> > > (and (listp obj)
> > > (cl-every (lambda (x) #'consp) obj)))
> >
> > I remember. No requirements of lambda to run #'consp on obj
>
>
> Much more important: /why/ are you "getting a validation" for list '(1 2 3)
> with the above form and...
>
> > (defun torium-alist-p (obj)
> > "Return t if object OBJ is an association list (alist)."
> > (and (listp obj)
> > (cl-every #'consp obj)))
>
>
> ...(probably, you didn't tell us) not with this one?
>
> Why are they different?
>
> Cheers
> --
> t
Have solved the problem. Was not with that one, but that one solved the
problem.
Felicitations
- Re: Check whether an object is an alist, (continued)
- Re: Check whether an object is an alist, tomas, 2024/09/17
- Re: Check whether an object is an alist, Heime, 2024/09/17
- Re: Check whether an object is an alist, tomas, 2024/09/17
- Re: Check whether an object is an alist, Heime, 2024/09/17
- Re: Check whether an object is an alist, tomas, 2024/09/17
- Re: Check whether an object is an alist, Heime, 2024/09/17
- Re: Check whether an object is an alist, tomas, 2024/09/17
- Re: Check whether an object is an alist, Heime, 2024/09/17
- Re: Check whether an object is an alist, Heime, 2024/09/17
- Re: Check whether an object is an alist, tomas, 2024/09/18
- Re: Check whether an object is an alist,
Heime <=
- Re: Check whether an object is an alist, Stephen Berman, 2024/09/17
- RE: [External] : Re: Check whether an object is an alist, Drew Adams, 2024/09/17