emacs-devel
[Top][All Lists]
Advanced

[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:12:32 -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

I should have said that _some_ circular lists are "true lists".

(null (cdr (last #1='(2 3 #1# . 5)))) = nil



reply via email to

[Prev in Thread] Current Thread [Next in Thread]