From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Joost Kremers Newsgroups: gmane.emacs.help Subject: Re: Passing function to mapcar Date: Mon, 02 Sep 2024 11:35:32 +0200 Message-ID: <86ttey4cuz.fsf@fastmail.fm> References: <7gCipGlilClt_mxSbraoYACoR6rHzQFm-JCI_l8iT9Ql-dSYy5VArUWM5fl2gcKpLfKOnxWiC5VYS0ey7dQTvESkr1c8awVioFwSrJmEM-g=@protonmail.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="30043"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Heime via Users list for the GNU Emacs text editor To: Heime Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Mon Sep 02 11:36:40 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 1sl3UF-0007dg-Ua for geh-help-gnu-emacs@m.gmane-mx.org; Mon, 02 Sep 2024 11:36:40 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sl3TM-0004cm-OY; Mon, 02 Sep 2024 05:35:44 -0400 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 1sl3TK-0004cO-2d for help-gnu-emacs@gnu.org; Mon, 02 Sep 2024 05:35:42 -0400 Original-Received: from fhigh8-smtp.messagingengine.com ([103.168.172.159]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sl3TI-0001bW-57 for help-gnu-emacs@gnu.org; Mon, 02 Sep 2024 05:35:41 -0400 Original-Received: from phl-compute-05.internal (phl-compute-05.nyi.internal [10.202.2.45]) by mailfhigh.nyi.internal (Postfix) with ESMTP id D091111402B7; Mon, 2 Sep 2024 05:35:36 -0400 (EDT) Original-Received: from phl-mailfrontend-02 ([10.202.2.163]) by phl-compute-05.internal (MEProxy); Mon, 02 Sep 2024 05:35:36 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:subject :subject:to:to; s=fm1; t=1725269736; x=1725356136; bh=WHAZgggqBL R18C+8hQbxGDx+0+IMDw88+vSYOkdAyZA=; b=a9rGRWYu4i53Th3ueqYa9CDigB TDSwReXjIMMdf0QtqTQthRLpWW3WJjYbImi4mNMBl2XL/pItHVxpi2m69HxM+rlR hQiXG7/1g6BGEVoEcOaKYLOmEUKYW1xLAzoB/CV2t6/daizJaDMa4/st2HbrShYM IXioU27ayckkU7B2IlsXZa1LPnf1sHaUNxkcWwEVzgz75QPobBOxpQnXGjE01quy flBGjLa+zPt/crN3ZKXgUkZU6M/70RkG83boewecKF1FdniappdhRmFEOLE7KIGL 03b0VjhgCwFOteO660TLfMZ8kFLN8jevkbylIjtbu6zvGyWLQfyd+a9hxhvA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:subject:subject:to :to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1725269736; x=1725356136; bh=WHAZgggqBLR18C+8hQbxGDx+0+IM Dw88+vSYOkdAyZA=; b=r/TIyNChMIa04kQKdzVAunHp5kwQbpXE8DdBf3BgKYDz RlH/BxZw5PlMDlyRJr6Iq0Lz1ITswEyl46sA/wg8xr9RuqdgOPdGYrRYACeF2Ofb OOjHt3mcrOvTGOfLEhZw7uPCMLDvhLN9GjwJyH2EkpC/uYFH1RTVpV/gSJVBW9bY VJtIJwSn2xKEqV+qaqqOSlgSBFV3XfPw/nsGgDEVh+9qqF+kcfG/vUneJe+dsFg3 ib2X/KvMNhk6S6ipc2JqXOZ/xrBRsIksP2AtujQCmpfOofl/mwzdirdtAnhU8+Z4 vKn5deHCsRd9vlSnQKDibf8AncXkWgYsTumfg2u9mg== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeftddrudehfedgudejucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdggtfgfnhhsuhgsshgtrhhisggvpdfu rfetoffkrfgpnffqhgenuceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnh htshculddquddttddmnecujfgurhephffvvefujghffffkgggtsehttdertddttddtnecu hfhrohhmpeflohhoshhtucfmrhgvmhgvrhhsuceojhhoohhsthhkrhgvmhgvrhhssehfrg hsthhmrghilhdrfhhmqeenucggtffrrghtthgvrhhnpeekveelieeuleettdefueegvddu kefhgeevleduveeileetkeeggfekhfeuffffieenucevlhhushhtvghrufhiiigvpedtne curfgrrhgrmhepmhgrihhlfhhrohhmpehjohhoshhtkhhrvghmvghrshesfhgrshhtmhgr ihhlrdhfmhdpnhgspghrtghpthhtohepvddpmhhouggvpehsmhhtphhouhhtpdhrtghpth htohephhgvlhhpqdhgnhhuqdgvmhgrtghssehgnhhurdhorhhgpdhrtghpthhtohephhgv ihhmvggsohhrghhirgesphhrohhtohhnmhgrihhlrdgtohhm X-ME-Proxy: Feedback-ID: ie15541ac:Fastmail Original-Received: by mail.messagingengine.com (Postfix) with ESMTPA; Mon, 2 Sep 2024 05:35:35 -0400 (EDT) In-Reply-To: <7gCipGlilClt_mxSbraoYACoR6rHzQFm-JCI_l8iT9Ql-dSYy5VArUWM5fl2gcKpLfKOnxWiC5VYS0ey7dQTvESkr1c8awVioFwSrJmEM-g=@protonmail.com> (Heime's message of "Sun, 01 Sep 2024 23:44:03 +0000") Received-SPF: pass client-ip=103.168.172.159; envelope-from=joostkremers@fastmail.fm; helo=fhigh8-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_DNSWL_LOW=-0.7, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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:147885 Archived-At: On Sun, Sep 01 2024, Heime wrote: > I am using mapcar to apply the lambda function taking values > in rgb-list as argument c. > > (mapcar (lambda (c) > (min 255 (max 0 (round (* c factor))))) > rgb-list) > > I think that the function used for mapcar should have only a > single argument. Is this correct ? Yup. > What can one do if I want to call a function with more than > a single argument ? There's seq-mapn. -- Joost Kremers Life has its moments