From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Barry Margolin Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Thu, 26 Jun 2014 01:27:37 -0400 Organization: A noiseless patient Spider Message-ID: References: NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403760625 27267 80.91.229.3 (26 Jun 2014 05:30:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 26 Jun 2014 05:30:25 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jun 26 07:30:18 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1X02GI-0003gZ-2b for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2014 07:30:18 +0200 Original-Received: from localhost ([::1]:42410 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1X02GH-0007lm-Nb for geh-help-gnu-emacs@m.gmane.org; Thu, 26 Jun 2014 01:30:17 -0400 Original-Path: usenet.stanford.edu!news.kjsl.com!feeder.erje.net!eu.feeder.erje.net!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!barmar.motzarella.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 21 Injection-Info: barmar.motzarella.org; posting-host="2be9e9f5dd9af768b8861af71b85fc28"; logging-data="18826"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18TbpBbMDiS2qTpM1PlOn/r" User-Agent: MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) Cancel-Lock: sha1:meWWADvaP0xiXEElm1pLFDrqJO8= Original-Xref: usenet.stanford.edu gnu.emacs.help:206136 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:98407 Archived-At: In article , Robert Thorpe wrote: > If it's a bad idea for Elisp to follow Common Lisp then how about some > Elispy functions? That is, why not include in Emacs simple functions > like "find" that don't use keywords, like the Elisp's "member". Those > could be made fast. They could be named slightly differently too to > avoid namespace collisions, e.g. "find-item", "find-iff", "remove-iff", > etc. Anyone who wants the Common Lisp ones can use cl-lib.el. member and memq already do mostly the same thing as find, except the latter works on arrays as well as lists, and it returns an index instead of the tail of the list. Maclisp got along for years without find. If it was good enough then, it should be good enough now. :) -- Barry Margolin, barmar@alum.mit.edu Arlington, MA *** PLEASE post questions in newsgroups, not directly to me ***