GNU bug report logs - #58278
Add new function seq-keep

Previous Next

Package: emacs;

Reported by: Jonas Bernoulli <jonas <at> bernoul.li>

Date: Mon, 3 Oct 2022 21:31:02 UTC

Severity: normal

Fixed in version 29.1

Done: Lars Ingebrigtsen <larsi <at> gnus.org>

Bug is archived. No further changes may be made.

Full log


Message #26 received at 58278 <at> debbugs.gnu.org (full text, mbox):

From: Lars Ingebrigtsen <larsi <at> gnus.org>
To: Robert Pluim <rpluim <at> gmail.com>
Cc: 58278 <at> debbugs.gnu.org, Jonas Bernoulli <jonas <at> bernoul.li>
Subject: Re: bug#58278: Add new function seq-keep
Date: Tue, 04 Oct 2022 13:10:38 +0200
Robert Pluim <rpluim <at> gmail.com> writes:

> Thatʼs why I said "apart from the syntactic sugar" 😀

Having to rewrite

(seq-keep #'cl-digit-char-p '(?6 ?a))
=> (6)

to

(cl-mapcan (lambda (c)
	     (let ((res (cl-digit-char-p c)))
	       (and res (list res))))
	   '(?6 ?a))
=> (6)

is more than "syntactic sugar" in my book.  Nobody would want to write
code like the latter.




This bug report was last modified 2 years and 271 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.