From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Miles Bader Newsgroups: gmane.emacs.devel Subject: Re: moving more cl seq/mapping support into core Date: Sun, 26 Sep 2010 06:26:44 +0900 Message-ID: References: <87sk0y1i18.fsf@catnip.gol.com> <7DEE67615141433C8FE87DBFE1DE88E8@us.oracle.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: dough.gmane.org 1285450056 10417 80.91.229.12 (25 Sep 2010 21:27:36 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Sat, 25 Sep 2010 21:27:36 +0000 (UTC) Cc: emacs-devel@gnu.org To: Drew Adams Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Sep 25 23:27:34 2010 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1OzcHN-00052O-EI for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 23:27:33 +0200 Original-Received: from localhost ([127.0.0.1]:34409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzcHM-0004yO-NG for ged-emacs-devel@m.gmane.org; Sat, 25 Sep 2010 17:27:32 -0400 Original-Received: from [140.186.70.92] (port=37280 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OzcHH-0004wb-5F for emacs-devel@gnu.org; Sat, 25 Sep 2010 17:27:28 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OzcHF-00015o-VJ for emacs-devel@gnu.org; Sat, 25 Sep 2010 17:27:26 -0400 Original-Received: from mail-iw0-f169.google.com ([209.85.214.169]:62158) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OzcHF-00015k-Q6 for emacs-devel@gnu.org; Sat, 25 Sep 2010 17:27:25 -0400 Original-Received: by iwn33 with SMTP id 33so5662340iwn.0 for ; Sat, 25 Sep 2010 14:27:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:sender:received :in-reply-to:references:from:date:x-google-sender-auth:message-id :subject:to:cc:content-type:content-transfer-encoding; bh=lrEaeTR1hIfaZfV/Bj/sUWQcZGxssB+S+8Q8Gki4/6s=; b=UZQiqnTO9JkxEKLjBCzTyUudKC5JcZbhpMHrptjsO+0kyBtBp4ibreUoTZ91duDo2F 0ynBJ3IxH2YpdnPLShuXh0MDNNQ/PKDL+lXTvcNLpFiePjyCq0u8QxuBtjYVv3KcmAXV N33QHn0qWvBvIQEXO7lMZNPPZskekbmT/h6lg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:cc:content-type :content-transfer-encoding; b=ToSF3rdIgamelVCgnMgNEBJlrqmLGmgHbTTucaYDERH2E4deAvj9eqljCNCn5fqGpB 57Q98uJEmrssyptgTl6LBpo3L6qoNMMW7BNYzvdCSs+Lt96ilNOgWzcMOIKEJdYLPFwJ 32NaofFsIoLYLUzF6sMzb/XbxYHftFfc1A0Kg= Original-Received: by 10.231.11.13 with SMTP id r13mr5308345ibr.137.1285450045023; Sat, 25 Sep 2010 14:27:25 -0700 (PDT) Original-Received: by 10.231.147.75 with HTTP; Sat, 25 Sep 2010 14:26:44 -0700 (PDT) In-Reply-To: <7DEE67615141433C8FE87DBFE1DE88E8@us.oracle.com> X-Google-Sender-Auth: JYDIGQzLfG4MD9iR9yyOHie8FMQ X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:130880 Archived-At: On Sat, Sep 25, 2010 at 11:42 PM, Drew Adams wrote: >> For instance, `remove-if' is obviously useful (I think it's >> often one of those "I use cl.el for that function" functions), not >> complex, and could probably be moved into the core in some >> simplified form. >> >> Suggested function signature: =A0(remove-if PREDICATE SEQ [TEST]) -- and >> of course, change the cl.el version to deal with TEST as well. > > +1 for remove-if(-not) > > But I don't know what you meant by TEST. > AFAIK, the CL signature is this: > > remove-if PREDICATE SEQ &key :from-end :start :end :count :key > > Maybe you were thinking of `remove', which has `:test'? Ah, yes, indeed. That makes adding remove-if even simpler of course! -miles --=20 Cat is power. =A0Cat is peace.