From: Petteri Hintsanen <petterih@iki.fi>
To: Philip Kaludercic <philipk@posteo.net>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Comparing lists
Date: Wed, 13 Sep 2023 18:41:46 +0300 [thread overview]
Message-ID: <x2mjzsu3wsl.fsf@iki.fi> (raw)
In-Reply-To: <874jjys6oh.fsf@posteo.net> (Philip Kaludercic's message of "Wed, 13 Sep 2023 10:34:22 +0000")
Philip Kaludercic <philipk@posteo.net> writes:
> Have you considered using cl-set-difference or seq-set-equal-p?
No. I tried to search for set functions like those, but somehow I
missed them 🤦
seq-set-equal-p would fit the bill but does not seem to be recursive.
For example:
(seq-set-equal-p '(a b (c d)) '(a b (d c))) ⇒ nil
Nonetheless it is probably very useful in other contexts. Same for cl
set functions.
Thanks,
Petteri
(btw. C-x 8 e e is the best Emacs feature ever)
next prev parent reply other threads:[~2023-09-13 15:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-09-11 18:53 Comparing lists Petteri Hintsanen
2023-09-12 7:26 ` Emanuel Berg
2023-09-12 12:19 ` Rudolf Schlatte
2023-09-13 15:32 ` Petteri Hintsanen
2023-09-13 10:34 ` Philip Kaludercic
2023-09-13 15:41 ` Petteri Hintsanen [this message]
2023-09-15 2:12 ` Michael Heerdegen
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=x2mjzsu3wsl.fsf@iki.fi \
--to=petterih@iki.fi \
--cc=help-gnu-emacs@gnu.org \
--cc=philipk@posteo.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.