From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Wed, 18 Jun 2014 13:00:23 +0200 Message-ID: <87y4wuwkhk.fsf@gmail.com> References: <87d2e78nn7.fsf@gmail.com> <87bntr8jtc.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1403089242 11164 80.91.229.3 (18 Jun 2014 11:00:42 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Jun 2014 11:00:42 +0000 (UTC) Cc: help-gnu-emacs@gnu.org To: Stefan Monnier Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jun 18 13:00:33 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 1WxDbV-00033D-9a for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 13:00:33 +0200 Original-Received: from localhost ([::1]:56457 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDbU-0003mS-7s for geh-help-gnu-emacs@m.gmane.org; Wed, 18 Jun 2014 07:00:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51865) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDbE-0003m2-6y for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 07:00:21 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WxDb8-0008Lh-OZ for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 07:00:16 -0400 Original-Received: from mail-we0-x22e.google.com ([2a00:1450:400c:c03::22e]:34583) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WxDb8-0008LT-Ic for help-gnu-emacs@gnu.org; Wed, 18 Jun 2014 07:00:10 -0400 Original-Received: by mail-we0-f174.google.com with SMTP id u57so653974wes.5 for ; Wed, 18 Jun 2014 04:00:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=references:user-agent:from:to:cc:subject:in-reply-to:date :message-id:mime-version:content-type; bh=45P5HH0R3fBRfpfZw6sCnsoXKQngNdWYEnGG2R6HcU0=; b=W+pCwBvR3y8P8clnKNXh8OXNCXykeUXAf9oqkBgEv7uMqbsKtw/LmcAWtvNZxCTdTe wiftHxOz0qIDtkrY8TSRmiZgao7hdP3nBNZky2qjh520ap6magW9f+EguKIzrbwpmhSu 71+DC6afvVmwP36JIliMS/r6qL+sr+2kpwThg8HprHLHV9MV36CZbX1aAe81R0qRSUPp hLO7DWg1Ht3pfzoZXj4Y9w+iWAtRLwP8NMNfVBm423HH9iChlixdeoK6+KroJPyPeAo7 6b2QBFlgdTk+flJRmOFb8KGYrPXlTf+GHPfS0HYwslXqpVQeXPGgYVsMf0BMHBEBHysC JQ/w== X-Received: by 10.194.190.42 with SMTP id gn10mr47148131wjc.9.1403089209543; Wed, 18 Jun 2014 04:00:09 -0700 (PDT) Original-Received: from lingonberry ([193.51.236.39]) by mx.google.com with ESMTPSA id s14sm13351548wij.1.2014.06.18.04.00.08 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Wed, 18 Jun 2014 04:00:09 -0700 (PDT) User-agent: mu4e 0.9.9.6pre3; emacs 24.3.1 In-reply-to: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c03::22e 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:98329 Archived-At: Stefan Monnier writes: >>>> Emacs Lisp is a great Lisp dialect, but I miss `find`, `find-if`, >>>> `remove-if`, etc. iteration functions a lot. Sure, I can require cl-lib >>>> or use dash, but I'm wondering why these functions are not part of the >>>> base language? >>> Not sure what you mean. Most languages I know provide list operations >>> via libraries. Why should Elisp be different? >> What I mean is that Elisp do not have `remove-if` > > Of course it does, tho it calls it `cl-remove-if'. Yes, but what I meant was that there is no filtering function in Elisp itself (cl-remove-if is part of cl-lib). But Barry's answer explains it. Now I'm wondering if it would make sense to have such functions in Elisp itself? Nico