help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FW: [External] : Re: Lisp anime video


From: Emanuel Berg
Subject: Re: FW: [External] : Re: Lisp anime video
Date: Fri, 24 Sep 2021 19:03:27 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Drew Adams wrote:

>>> Yeah, I know "cdddddddddddddddddr" isn't "official API".
>>
>> `cddddr' is the longest I think ...
>
> (defun cdddddddddddddddddr (list)
>   "Return the 17th cdr of LIST."
>   (nthcdr 17 list))
>
> or
>
> (defun cdddddddddddddddddr (list)
>   "Return the 17th cdr of LIST."
>   (declare (compiler-macro internal--compiler-macro-cXXr))
>   (cddddr (cddddr (cddddr (cddddr (cdr list))))))
>
> (setq foo '(1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19))
> (cdddddddddddddddddr foo)

It seems "cdddddddddddddddddr" is theoretically as well as
practically possible however it also seems to hold that it
isn't in the official API - perhaps report a bug with your
code so they will add it to the next Emacs ...

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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