From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "WJ" Newsgroups: gmane.emacs.help Subject: Re: Why aren't `find`, `find-if`, `remove-if` part of Emacs Lisp? Date: Fri, 20 Jun 2014 00:20:46 +0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <87d2e78nn7.fsf@gmail.com> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1403223940 13937 80.91.229.3 (20 Jun 2014 00:25:40 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 20 Jun 2014 00:25:40 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Fri Jun 20 02:25:34 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 1Wxme6-0001sf-0x for geh-help-gnu-emacs@m.gmane.org; Fri, 20 Jun 2014 02:25:34 +0200 Original-Received: from localhost ([::1]:38478 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wxme5-0000eE-4e for geh-help-gnu-emacs@m.gmane.org; Thu, 19 Jun 2014 20:25:33 -0400 Original-Path: usenet.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.xs4all.nl!newsfeed3a.news.xs4all.nl!xs4all!news.stack.nl!eternal-september.org!feeder.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 62 Injection-Date: Fri, 20 Jun 2014 00:20:46 +0000 (UTC) Injection-Info: mx05.eternal-september.org; posting-host="b117e3ebccffee59667adc8cc53f7c6c"; logging-data="16811"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1//18EqFTKlB0MhOELZdijB" User-Agent: XanaNews/1.18.1.6 X-Antivirus-Status: Clean X-Antivirus: avast! (VPS 140619-1, 06/19/2014), Outbound message Cancel-Lock: sha1:yBzCo0Y2ETIHjzcsUi559rFTEWU= Original-Xref: usenet.stanford.edu gnu.emacs.help:206073 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:98344 Archived-At: Stefan Monnier wrote: > Most languages I know provide list operations > via libraries. I hope that you are kidding. If you're not, I hope that you have nothing to do with the "development" (or hobbling) of Emacs Lisp. Most languages that I know provide list operations without loading a library. There would be no reason not to. List operations are fundamental. One should not have to load a package that emulates CL in order to have the usual and expected list operations, and one should not have to load a third-party library like Dash. Racket: > (filter odd? '(0 1 2 3)) '(1 3) Bigloo Scheme: 1:=> (filter odd? '(0 1 2 3)) (1 3) Clojure: user=> (filter odd? [0 1 2 3]) (1 3) Arc: arc> (keep odd '(0 1 2 3)) (1 3) NewLisp: > (filter odd? '(0 1 2 3)) (1 3) Julia: julia> filter( isodd, [0 1 2 3] ) 2-element Int32 Array: 1 3 Ruby: [0,1,2,3].select( &:odd? ) ==>[1, 3] OCaml: # List.filter (fun x -> x > 0) [0;1;2;3] ;; - : int list = [1; 2; 3] elisp: : (mapcar #'1+ '(0 1 2 3)) (1 2 3 4)