From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.help Subject: Re: How to specialize seq-concatenate and seq-into-sequence? Date: Fri, 04 Mar 2022 22:54:24 +0100 Message-ID: <87v8wtgz8v.fsf@web.de> References: <4E8CCFE1-514F-4636-A69E-B78562BBC702@gmail.com> <389E16F7-14BD-492B-93EE-9D542C374628@gmail.com> <871qzibg2a.fsf@web.de> <4F58A846-36B5-4D52-88A1-9D6F63773679@gmail.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="2380"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: help-gnu-emacs@gnu.org To: Philipp Stephani Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Fri Mar 04 22:55:21 2022 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 1nQFtO-0000Py-8D for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 22:55:18 +0100 Original-Received: from localhost ([::1]:54850 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nQFtM-0002oo-Ia for geh-help-gnu-emacs@m.gmane-mx.org; Fri, 04 Mar 2022 16:55:16 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:58438) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQFsb-0002of-Kt for help-gnu-emacs@gnu.org; Fri, 04 Mar 2022 16:54:29 -0500 Original-Received: from mout.web.de ([212.227.15.4]:53383) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nQFsZ-0003HY-V3 for help-gnu-emacs@gnu.org; Fri, 04 Mar 2022 16:54:29 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=web.de; s=dbaedf251592; t=1646430864; bh=V3SOhFGd6Owtw/jghQe02FThvUDrczXrsMLFE5UC8fw=; h=X-UI-Sender-Class:From:To:Cc:Subject:References:Date:In-Reply-To; b=aW3kFKQN/7ZkmZtu7GW0RxezrO63w79nh2aCnFJlxzk9fPfYfdFn/b5iHi+bs4uDe Gorc4ThAtrgKHlpgFoLVthqoRQXtXp9R+dTQxm3cDuTFwrYsS0jxDY7x7Tmrpq1v4V +GLQOe/dYyKXZs2vVmWOG4Y71oB7lWhT7Blr6Djg= X-UI-Sender-Class: c548c8c5-30a9-4db5-a2e7-cb6cb037b8f9 Original-Received: from drachen.dragon ([84.60.174.212]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MeDMR-1o08vf25lX-00axjl; Fri, 04 Mar 2022 22:54:24 +0100 In-Reply-To: <4F58A846-36B5-4D52-88A1-9D6F63773679@gmail.com> (Philipp Stephani's message of "Fri, 4 Mar 2022 21:56:12 +0100") X-Provags-ID: V03:K1:TDO6aQUklLFAFeOHZrz6TwjUg6U1Yo7bpCpsypJzh9g20rjEFxh nUOa5jjZ/wfjx01z32k3DsbFp7+UeoFB+ur9nNibDeIuC2maxuNHjzVLuIegQYiFW5jhV+e e8UOmwBuZwO2JCt4u/j4bDKHvzWHyyVAq7bHYf/LAv13ys9HVegtocBBkDwwDtKdyKt94Sn /w1ucSfZzBlB1TkHB25CA== X-UI-Out-Filterresults: notjunk:1;V03:K0:09Mff8ExUWk=:qqEFVn8aA0EiGipNmjYGpH LEdK56OZr8hdsYRZmJ4SW1TQYXAkTTeN04XRI6HcPK+3aAd5FGpopp2OFcbTX7C2WEBRxdQ2w YmpOPNTYPZ7WITfoCoqOfi/+VyGoPODtAo6OB8O0QDXr9Qln5G3ML5z28+JyFM+Z1ndt15czu y0HzO9MlVCrr3OEJ2lSyDa2LNsmIauLLVCyUh+sW07OIvIm7lqMYf583VY+p1XLO7IlgTPnwl R7xwU5dHUwTs+S8IV7URjah5VWQ44hntl7IeoxOlLCE/S47LyqGu/qVBKH8wFc7MrDGwn3gji upgFXeuHBGrSmrZxl8asZ2ITk/gRBHDQHzsoiXx5psWMvVcxum50RmY2OZ/tx09dHdX6beoT6 Lsrz5iPcrsNrgdLnGfrBjNFIicjpdRoovzCYrhFWBdZtim28sA8Qi+6i7Pg5s9gYXRPr5Vayr 2VWFaCsuhhM5UZMQwDG9wMHgV/JuFwjKqo/AgThKgrwZVswIs5W17U1J4InW1WTgn95TCqSCY YyZutDteKBK28avdlT1TcLFi1hv+wceDgNFQVR8BMgcxGUqmaWENwhP4SIR8tKIM3Ua++fzCk WQ/FLnrVke/tQbMMCuzAqvY9kdIEQOnOGiUGveK4lhijjOWAZvRvdwJdstVPTzODqWsDpYeZX QC9Bm6tFZ0LLQ1YgMWqwM/ukG6ypOgllvb5WQjR2T1ky2ZKKWFKUAeXlYnsEunvxuJ3tm+GTN VhIR5xivg3IUSe/9hJLjfaqDuxMAoX+y+ubaE6lD2vu7N+7i6JVxOB2Db9hcbZHQYVIw3T/c Received-SPF: pass client-ip=212.227.15.4; envelope-from=michael_heerdegen@web.de; helo=mout.web.de 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, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=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" Xref: news.gmane.io gmane.emacs.help:136365 Archived-At: Philipp Stephani writes: > I guess the idea is that `seq-concatenate' can only be specialized for > new *result* types, not for new *argument* types. Likely. But that won't be enough when more sequence types are added. I think each argument that is not one of the default types should be silently converted into the goal type before appending the sequences. The generic function `seq-into' seems the right place to implement the `seq-concatenate' semantics for new sequence types. Michael.