From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Sam Steingold Newsgroups: gmane.emacs.devel Subject: Re: master d62766305a: Add `take` and `ntake` (bug#56521) Date: Mon, 18 Jul 2022 13:21:07 -0400 Message-ID: References: <165807284522.13427.2673143161208860104@vcs2.savannah.gnu.org> <20220717154726.F2455C00095@vcs2.savannah.gnu.org> Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="13677"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (darwin) To: emacs-devel@gnu.org, Mattias =?utf-8?B?RW5nZGVnw4PCpXJk?= Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Jul 18 19:24:24 2022 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1oDUTn-0003Lp-V2 for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Jul 2022 19:24:23 +0200 Original-Received: from localhost ([::1]:59028 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oDUTm-0000zq-Rs for ged-emacs-devel@m.gmane-mx.org; Mon, 18 Jul 2022 13:24:22 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:42688) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oDUQm-0006Vh-Je for emacs-devel@gnu.org; Mon, 18 Jul 2022 13:21:16 -0400 Original-Received: from mail-qv1-xf35.google.com ([2607:f8b0:4864:20::f35]:42740) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oDUQi-0001ZR-JH; Mon, 18 Jul 2022 13:21:14 -0400 Original-Received: by mail-qv1-xf35.google.com with SMTP id p14so9262989qvo.9; Mon, 18 Jul 2022 10:21:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:from:to:subject:in-reply-to:references:user-agent :return-receipt-to:reply-to:mail-followup-to:date:message-id :mime-version:content-transfer-encoding; bh=94jTxflUppm7vZLOIzLoOmvybg/9lPlnATxXvLQcstg=; b=ZLwmADmNsFVifrgaZODRpsuJmnJiZ+C/q5322IoKOR/mB3Ftw4ofx5ZK6sddSrtRxa j/T6ek+ODRDBoDNh3bcoF1RM6dVPGUeIuV5+f2g0oBDzA6bk052n/sGTZfjsY2EORPdn 3/dY4ONLyhAKDbLrE8YUqrotzsv6e8LIuW/zfxK4n4PYZFn6g819/Fov7+5a50SeYv/W p4G+3Op0OFyb3z3HhF5NBtdlt4bh6TDYZuy1a49RNrNsxfDLJOiwY6JCNGMZdAjWuLSm e/oJXLs+drPFTlk98HUjzxCvS4PB1KyYaulU+4J0lCvJ59boa0k4KCJarWZUY0zW7Kzn 4H+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:from:to:subject:in-reply-to:references :user-agent:return-receipt-to:reply-to:mail-followup-to:date :message-id:mime-version:content-transfer-encoding; bh=94jTxflUppm7vZLOIzLoOmvybg/9lPlnATxXvLQcstg=; b=sWfo5FsrSgJJZyq4FR5m5fP90RMb4jppBiBU+ZYAPI1HwBhtL+EqntSr0QXTpVkfyt OTDySb4MSNvgbmye4r9YfAJzzess8NPvW0hiIQNMy9WK8TYRZXRhtkpOdDHEv8DthOec viEXmKF9rKq9zopdyFF6hpDcnM7mNfPme7QbhmfRSYiIJC+Klt2MQfxfCSvfHkEdNVJj p6TBLqAwEtOe6mqlELLSUdAqZaWGrP/8cvm0AUKMZRVl2yzzHJu6Rt6xcIfjR8TzBYvQ gCnBGse4OfLhiRJsyRkaJ19vnPLfRzj1+wX/NA7qZWAho3XI6FgvamNEjiqiYOutNExr 2H5g== X-Gm-Message-State: AJIora/4DGcy5FQ/s5SnezZAOnyh+H9Ke+fLKgmK6Hd0USlPCeuVqaux 7d8JfRtU2Sq/Jcp2qdv/qe1aMPccUA== X-Google-Smtp-Source: AGRyM1u9uwmXaXkn4r28KIHvu5NV4ylt1WKeFQZ4CoOBQt/EXWwHhp/f3yPp6lgB3IMDb0Ktzi2Uiw== X-Received: by 2002:a05:6214:dca:b0:473:bde:8495 with SMTP id 10-20020a0562140dca00b004730bde8495mr21892895qvt.40.1658164868982; Mon, 18 Jul 2022 10:21:08 -0700 (PDT) Original-Received: from 3c22fb11fdab.ant.amazon.com (pool-108-30-23-113.nycmny.fios.verizon.net. [108.30.23.113]) by smtp.gmail.com with ESMTPSA id y17-20020a05620a25d100b006b46a78bc0fsm11473565qko.118.2022.07.18.10.21.08 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Jul 2022 10:21:08 -0700 (PDT) In-Reply-To: <20220717154726.F2455C00095@vcs2.savannah.gnu.org> ("Mattias =?utf-8?Q?Engdeg=C3=83=C2=A5rd=22's?= message of "Sun, 17 Jul 2022 11:47:25 -0400 (EDT)") X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Followup-To: emacs-devel@gnu.org, Mattias =?utf-8?B?RW5nZGVnw4PCpXJk?= Received-SPF: pass client-ip=2607:f8b0:4864:20::f35; envelope-from=sam.steingold@gmail.com; helo=mail-qv1-xf35.google.com X-Spam_score_int: -14 X-Spam_score: -1.5 X-Spam_bar: - X-Spam_report: (-1.5 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.io gmane.emacs.devel:292239 Archived-At: > * Mattias Engdeg=C3=83=C2=A5rd [2022-07-17 11:47:25 -0= 400]: > > branch: master > commit d62766305ad8fe6ca1695341c34b9836d051e3cb > Author: Mattias Engdeg=C3=A5rd > Commit: Mattias Engdeg=C3=A5rd > > Add `take` and `ntake` (bug#56521) >=20=20=20=20=20 > These are useful list primitives, complementary to `nthcdr`. How are these better than the venerable butlast and nbutlast? https://www.gnu.org/software/emacs/manual/html_node/elisp/List-Elements.htm= l#index-butlast note that butlast and nbutlast have a very long Lisp history, they appear also in Common Lisp and many lisps before that. --=20 Sam Steingold (http://sds.podval.org/) on darwin Ns 10.3.2113 http://childpsy.net http://calmchildstories.com http://steingoldpsychology.= com https://thereligionofpeace.com https://ffii.org https://jihadwatch.org Democrats, get out of my wallet! Republicans, get out of my bedroom!