[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Appending to a list
From: |
Emanuel Berg |
Subject: |
Re: Appending to a list |
Date: |
Mon, 14 Dec 2020 00:31:31 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
steve-humphreys wrote:
> Basically I just want to push entries that are themselves
> lists, and just go with push push push ...
You can use `cl-pushnew' for pushing lists as well!
As in:
(require 'cl-lib)
(defvar bird-list-all)
(defvar bird-list-1)
(defvar bird-list-2)
(setq bird-list-all '())
(setq bird-list-1 '("Western jackdaw" "European goldfinch"))
(setq bird-list-2 '("rook"))
(cl-pushnew bird-list-1 bird-list-all) ; (("Western jackdaw" "European
goldfinch"))
(cl-pushnew bird-list-2 bird-list-all) ; (("rook") ("Western jackdaw" "European
goldfinch"))
Birds and Elisp! That, I didn't see coming!
Check out this file:
https://dataswamp.org/~incal/BIRDS
It even has some Elisp to compute the number of observed birds
("kryss", as they are called in Swedish). I have 61, that means
not much of an ornithologist, I'm afraid :$
:)
--
underground experts united
http://user.it.uu.se/~embe8573
https://dataswamp.org/~incal
- Re: Appending to a list, (continued)
- Re: Appending to a list, Michael Heerdegen, 2020/12/14
- Re: Appending to a list, Emanuel Berg, 2020/12/14
- Re: Appending to a list, steve-humphreys, 2020/12/14
- Re: Appending to a list, Emanuel Berg, 2020/12/14
- Re: Appending to a list, Joost Kremers, 2020/12/13
- Re: Appending to a list, Joost Kremers, 2020/12/13
Re: Appending to a list, steve-humphreys, 2020/12/13
- Re: Appending to a list,
Emanuel Berg <=