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

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

Re: append, push, and add-to-list.


From: Emanuel Berg
Subject: Re: append, push, and add-to-list.
Date: Mon, 05 Jul 2021 22:35:23 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

> A bit too obvious, methinks.  Maybe:
>
>     (seq-intersection (seq-filter #'cl-oddp
>                                   (seq-map-indexed
>                                    (lambda (_ i) i)
>                                    (make-list (random 42) nil)))
>                       (seq-filter #'cl-evenp
>                                   (seq-map-indexed
>                                    (lambda (_ i) i)
>                                    (make-list (random 42) nil))))

(nth integer-width
  (string-to-list "Only this message denotes the empty list"))

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




reply via email to

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