From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Heime via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: Advantage using mapc over dolist Date: Mon, 02 Dec 2024 18:30:31 +0000 Message-ID: References: <87zflevbwm.fsf@neko.mail-host-address-is-not-set> Reply-To: Heime 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="40187"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Tomas Hlavaty Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Dec 02 19:31:26 2024 Return-path: Envelope-to: geh-help-gnu-emacs@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 1tIBCg-000AFm-9A for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Dec 2024 19:31:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIBCC-0002t8-Bf; Mon, 02 Dec 2024 13:30:56 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIBC1-0002ss-MX for help-gnu-emacs@gnu.org; Mon, 02 Dec 2024 13:30:45 -0500 Original-Received: from mail-4027.protonmail.ch ([185.70.40.27]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tIBC0-0001iB-0E for help-gnu-emacs@gnu.org; Mon, 02 Dec 2024 13:30:45 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1733164237; x=1733423437; bh=ss1hq7Rn3fmCwEJCUBrCvqBpQ9C3eWjIYgzGCBkxUtQ=; h=Date:To:From:Cc:Subject:Message-ID:In-Reply-To:References: Feedback-ID:From:To:Cc:Date:Subject:Reply-To:Feedback-ID: Message-ID:BIMI-Selector:List-Unsubscribe:List-Unsubscribe-Post; b=AVUkk2wbWkvOkreCVr3g1dWgVXaUqXeRN8PifEn2TMylnuiZPDkpShU9LbNvAuNWO Q7GxHBprg6iUhAIrLUDLl6uJHq5WGxYvdA5cXAllflXNtsQB8F3ebbb3JO47KmOQRB WInoU36pa5fVSwXcQpPnrep0mWhMeRhCjoDywPFtNEEV2/zyj69N8j8mX0z6dciS/o c0mnsVLfL6j2c7paS0vwuJ4jJGqYnVJQOk/rxNJiHnW41OnteO35Ks0Rt2II4tydiF /qQ9VHbjIY+B6CYs7/08nRDZX7USvF6TjZOlaI0ApKJKIZmkk4o4olfT6o8JV/cfS1 uYKN+IaL/BtgA== In-Reply-To: <87zflevbwm.fsf@neko.mail-host-address-is-not-set> Feedback-ID: 57735886:user:proton X-Pm-Message-ID: 38a42c650fe6ad224b22b734787375aa327a2726 Received-SPF: pass client-ip=185.70.40.27; envelope-from=heimeborgia@protonmail.com; helo=mail-4027.protonmail.ch X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_MSPIKE_H4=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 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-mx.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.help:148498 Archived-At: On Monday, December 2nd, 2024 at 6:26 PM, Tomas Hlavaty wr= ote: > On Sun 01 Dec 2024 at 23:31, Heime via Users list for the GNU Emacs text = editor help-gnu-emacs@gnu.org wrote: >=20 > > Is there any advantage using mapc over dolist when looping through > > a list passed as argument to a function? >=20 >=20 > no >=20 > in your example, dolist would be nicer >=20 > > (pcase actm > > ('armg (do-this)) > > ('go (do-that)))) >=20 >=20 > this does not justify pcase, use ecase or case instead I cannot see documentation for ecase or case!