From: Michael Heerdegen <michael_heerdegen@web.de>
To: Damien Cassou <damien@cassou.me>
Cc: Eli Zaretskii <eliz@gnu.org>, 57548@debbugs.gnu.org
Subject: bug#57548: Add new function `seq-positions'
Date: Tue, 06 Sep 2022 03:44:13 +0200 [thread overview]
Message-ID: <87leqxgtua.fsf@web.de> (raw)
In-Reply-To: <8735d7fs0z.fsf@cassou.me> (Damien Cassou's message of "Sun, 04 Sep 2022 10:44:12 +0200")
Damien Cassou <damien@cassou.me> writes:
> Very clear. See attached patch for the new version. I also added a unit
> test to make sure the result is what you expect.
Ok, great, thanks.
> +TESTFN is a two-argument function which is passed each element of
> +SEQUENCE as first argument and ELT as second. TESTFN defaults to
> +`equal'.
I hope this order feels natural for everyone? `pred` in `pcase' does
the opposite, but there the predicate comes first (syntactically).
We don't need to have the order analogous to pcase - but if people
prefer ELT being the first element in the TESTFN call, we can still
change it.
Michael.
next prev parent reply other threads:[~2022-09-06 1:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-09-02 18:43 bug#57548: Add new function `seq-positions' Damien Cassou
2022-09-02 19:00 ` Eli Zaretskii
2022-09-03 8:01 ` Damien Cassou
2022-09-03 10:16 ` Eli Zaretskii
2022-09-03 12:27 ` Lars Ingebrigtsen
2022-09-03 13:03 ` Damien Cassou
2022-09-04 2:27 ` Michael Heerdegen
2022-09-04 8:44 ` Damien Cassou
2022-09-04 11:22 ` Lars Ingebrigtsen
2022-09-06 1:44 ` Michael Heerdegen [this message]
2022-09-03 1:42 ` Michael Heerdegen
2022-09-03 8:02 ` Damien Cassou
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87leqxgtua.fsf@web.de \
--to=michael_heerdegen@web.de \
--cc=57548@debbugs.gnu.org \
--cc=damien@cassou.me \
--cc=eliz@gnu.org \
/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 public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).