From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: John Wiegley Newsgroups: gmane.emacs.devel Subject: Re: Any interest in a function like this to add to subr.el? Date: Tue, 18 Oct 2016 13:34:28 -0700 Message-ID: References: <68978e0f-03a3-70ec-c18a-e2d12f91ea5c@yandex.ru> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: blaine.gmane.org 1476822912 10456 195.159.176.226 (18 Oct 2016 20:35:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Oct 2016 20:35:12 +0000 (UTC) User-Agent: Gnus/5.130014 (Ma Gnus v0.14) Emacs/25.1.50 (darwin) Cc: emacs-devel@gnu.org To: Dmitry Gutov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 18 22:35:07 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bwb5x-00081A-Do for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2016 22:34:45 +0200 Original-Received: from localhost ([::1]:43814 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwb5z-0004ES-Kd for ged-emacs-devel@m.gmane.org; Tue, 18 Oct 2016 16:34:47 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:50872) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bwb5o-0004Cn-FX for emacs-devel@gnu.org; Tue, 18 Oct 2016 16:34:37 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bwb5k-0001hQ-F3 for emacs-devel@gnu.org; Tue, 18 Oct 2016 16:34:36 -0400 Original-Received: from mail-pf0-x22d.google.com ([2607:f8b0:400e:c00::22d]:35449) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1bwb5k-0001gN-7x for emacs-devel@gnu.org; Tue, 18 Oct 2016 16:34:32 -0400 Original-Received: by mail-pf0-x22d.google.com with SMTP id s8so2301324pfj.2 for ; Tue, 18 Oct 2016 13:34:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:in-reply-to:date:message-id:references :user-agent:mail-followup-to:mime-version; bh=NvzgBb8dHAlMaEp8nziHEw2CwC4762W/OMkajXEmk1g=; b=ul6yhG1kTifUyKbOYx2cyL/61DY+YNxrZSK1ZkDf3C7Eiqt2j316MuCVzcgL57OsFU O9BISoIwpJiGwa0yboLnsWHVoNxEMzSyMuB5i2MU32FJ3uzYnUZvAXHJg5nSXyn0NT2D oqCfPv6wfsA+MiM6UspEl9bv6bGQ2AzHemqm5KrUcMXboDJWEW9bgf3Sj7pOaowqQxD8 /b3jbDSRVIUyjzC3ToMcC5ySw0OYcq70XpRhVpi2InqZTh6dxu4MuE6X5qarJ9Fde/y4 RSS7nDZgsDsfSHbXBo6mGnJk9xp9hXQeh68HgUa2xeeTXfZEw1WmHYt7YhANAb29tc60 RMPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:in-reply-to:date:message-id :references:user-agent:mail-followup-to:mime-version; bh=NvzgBb8dHAlMaEp8nziHEw2CwC4762W/OMkajXEmk1g=; b=iVyEbqKfyk3iIxLhIQaq5HoVDY7u1Fc00p9pWthwdh0SXGe0BMWvOfYzvVzZe+uqZa pXW5S4jxGrik6dxN/t3IA4Hcn3w2P7srQayECeOx93+wZ7z2mNRkUJG4ozG2TLLU0/+Y RSPd5fuFQYygdMo+AnxUufdgUaYNUED7xjy6bxMMZxCcM1jlu0pe2k0p5rd0l1ZtiXVE mlZBUiKhc6T5EH1nQ2oejf1Ov6rDPSrK68L0qJi/eL4COzXwuGn9sS+gIN0PYwqZv2La MVkZlpTPR6xgl7frtHD8Uebfbjs9LQ8lUpEf4V3CQv6pQL+2q9CsAmMZagHSfPnv6W9p g+jA== X-Gm-Message-State: AA6/9Rmtvggt+NzpdMjGvZ7CI+waZhRU7CgRDynS+bDX12qXqGemeSubH35Xfan+l+yJiw== X-Received: by 10.99.109.138 with SMTP id i132mr3145332pgc.39.1476822870861; Tue, 18 Oct 2016 13:34:30 -0700 (PDT) Original-Received: from Vulcan.local (76-234-69-149.lightspeed.frokca.sbcglobal.net. [76.234.69.149]) by smtp.gmail.com with ESMTPSA id v73sm57982457pfd.63.2016.10.18.13.34.29 (version=TLS1 cipher=AES128-SHA bits=128/128); Tue, 18 Oct 2016 13:34:30 -0700 (PDT) X-Google-Original-From: "John Wiegley" Original-Received: by Vulcan.local (Postfix, from userid 501) id 2BEB330A8ED1; Tue, 18 Oct 2016 13:34:30 -0700 (PDT) In-Reply-To: <68978e0f-03a3-70ec-c18a-e2d12f91ea5c@yandex.ru> (Dmitry Gutov's message of "Tue, 18 Oct 2016 23:13:59 +0300") Mail-Followup-To: Dmitry Gutov , emacs-devel@gnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2607:f8b0:400e:c00::22d X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 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.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:208450 Archived-At: >>>>> "DG" == Dmitry Gutov writes: GD> Isn't this basically cl-sort, though? No. cl-sort is (1) destructive and (2) does not guarantee calling the accessor only once per element. -- John Wiegley GPG fingerprint = 4710 CF98 AF9B 327B B80F http://newartisans.com 60E1 46C4 BD1A 7AC1 4BA2