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: lexicographic list comparison Date: Mon, 12 Sep 2022 14:41:47 -0400 Message-ID: References: Reply-To: sds@gnu.org Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="1488"; 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, Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Mon Sep 12 20:42:48 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 1oXoOO-0000Ec-G3 for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Sep 2022 20:42:48 +0200 Original-Received: from localhost ([::1]:46530 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oXoON-0000b6-Fk for ged-emacs-devel@m.gmane-mx.org; Mon, 12 Sep 2022 14:42:47 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:54116) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oXoNT-0008GR-K4 for emacs-devel@gnu.org; Mon, 12 Sep 2022 14:41:51 -0400 Original-Received: from mail-qv1-xf36.google.com ([2607:f8b0:4864:20::f36]:41638) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oXoNS-0001Z4-01; Mon, 12 Sep 2022 14:41:51 -0400 Original-Received: by mail-qv1-xf36.google.com with SMTP id j1so7419218qvv.8; Mon, 12 Sep 2022 11:41:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:message-id:date:mail-followup-to:reply-to :return-receipt-to:user-agent:references:in-reply-to:subject:to:from :sender:from:to:cc:subject:date; bh=gR/Y4BnoQ/jH0x4hsC2sxqatln019+KcJRtBa9sSwRk=; b=m00XKTMiY1ANwhPvC3cFKtaXTqPaAUnfAAR/wJvpEicppmTD6wD3R21yKw9++vXj7j uJKP3srj45ewvrKRo3cjUJBZfwefRK6CDjjGx4jQP0TcqQrdFibDzFgBKCaPTZpZWBzP euAieqaQUWF+Iwb59Yvp9TJh1rWr1Wo1ZbnPpPot8ZTn5qAq0uTzQYfpnbD/mE4ecxSP v/IBd75ww2f5rZNlDxLFc3r3AZGaLfdwS7Xo40K7B8wRxiMzbOa4gjszNWFjmFFCcNgs XXwQO1G2u68yGBLMvvqZhjqpPk9LdouVuA/gHJnx1/rj4p/7ltoEJ977vpn5Wv2+sM5I lYwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:mail-followup-to:reply-to :return-receipt-to:user-agent:references:in-reply-to:subject:to:from :sender:x-gm-message-state:from:to:cc:subject:date; bh=gR/Y4BnoQ/jH0x4hsC2sxqatln019+KcJRtBa9sSwRk=; b=1jIBEhcPXf9ACJ6cKmLGFkL+Oj9PqNlrRYzGoR8LPgvNsMTF3AAKKOih++Mi4XEcTV B8GjjSl0TOlQNKUkVopAZdR6qIBysCLvd6Z/1iDbwmPbzM8x9IEoJ8Dcri2Nqda05zys bUCwtgOKpL4IpPG27IgT7zWbxohawXdGt1Gc5N/lzUl/WAJCp7rqtChCDGvt54cbIVPZ KyQco1s0ZHusTfq+oT9Dfg5LmfC8VFktdxkzijwxxZHwBkQFRFEC9rg+4iKx43ara0dk 8wjbfIStnpn8XqGmXm4JIsqF5BwOTx0ScUKZAOCnIDSWqp5cTxkytAOYQSQsh3Csn7i/ S0CQ== X-Gm-Message-State: ACgBeo0PzFcWd8VbAjyAGK0pKitql8UTBhca2tzJo3qAB2ctDOm/VA5P efVw6SbzKZ5s94z1lLAilcRE67kBYoxr X-Google-Smtp-Source: AA6agR5wuxZ8YUr2MBo8Rs9AMiS4CI2YiJeR5bsmVHRD6kDtSJL1sDGXzO8KiL75W+xdbjALTVps9A== X-Received: by 2002:a05:6214:20e6:b0:4ac:99bb:5821 with SMTP id 6-20020a05621420e600b004ac99bb5821mr10131592qvk.39.1663008108334; Mon, 12 Sep 2022 11:41:48 -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 c6-20020a05620a268600b006b93b61bc74sm8607140qkp.9.2022.09.12.11.41.47 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 12 Sep 2022 11:41:47 -0700 (PDT) In-Reply-To: (Stefan Monnier's message of "Mon, 12 Sep 2022 14:31:33 -0400") X-Attribution: Sam X-Disclaimer: You should not expect anyone to agree with me. Mail-Followup-To: emacs-devel@gnu.org, Stefan Monnier Received-SPF: pass client-ip=2607:f8b0:4864:20::f36; envelope-from=sam.steingold@gmail.com; helo=mail-qv1-xf36.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.25, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.25, 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:295218 Archived-At: > * Stefan Monnier [2022-09-12 14:31:33 -0400]: > > [ Tho I suspect you'll want those comparison functions to return > a -1/0/1 result rather than just a boolean, so you'd need an extra > combinator to turn such a comparison function into the kind expected > by `sort`. ] The predicate argument to lisp sort returns a boolean. -- Sam Steingold (https://aphar.dreamwidth.org/) on darwin Ns 10.3.2113 https://lastingimpactpsychology.com https://steingoldpsychology.com https://jihadwatch.org https://www.dhimmitude.org https://iris.org.il You won't get smarter by calling me a fool.