[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Predicate for true lists
From: |
Drew Adams |
Subject: |
RE: Predicate for true lists |
Date: |
Mon, 4 Jun 2018 20:08:11 -0700 (PDT) |
> (null (cdr (last xs))), which is
> (and list (nthcdr (1- (safe-length xs)) xs))).
Forgot to mention that by the manual's definition of "true list",
and by this code for it, a circular list _is_ a true list. Dunno
whether that was the intention of the OP's "true list".
(null (cdr (last #1='(2 3 #1#)))) = t
Re: Predicate for true lists, Paul Eggert, 2018/06/04
Re: Predicate for true lists, Basil L. Contovounesios, 2018/06/05
- Re: Predicate for true lists, Paul Eggert, 2018/06/06
- Re: Predicate for true lists, Van L, 2018/06/06
- Re: Predicate for true lists, Stefan Monnier, 2018/06/06
- Re: Predicate for true lists, Stefan Monnier, 2018/06/06
- Re: Predicate for true lists, Van L, 2018/06/07