From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stefan Monnier Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 387e1e1: New version of `seq-let' based on a pcase pattern Date: Mon, 11 May 2015 21:03:01 -0400 Message-ID: References: <20150510182502.23307.63648@vcs.savannah.gnu.org> <874mnjdycw.fsf@petton.fr> <87zj5adchm.fsf@petton.fr> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1431392609 9991 80.91.229.3 (12 May 2015 01:03:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 01:03:29 +0000 (UTC) Cc: emacs-devel@gnu.org To: Nicolas Petton Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 12 03:03:20 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1YrybP-0003Bl-W6 for ged-emacs-devel@m.gmane.org; Tue, 12 May 2015 03:03:20 +0200 Original-Received: from localhost ([::1]:40290 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrybP-0007Fb-05 for ged-emacs-devel@m.gmane.org; Mon, 11 May 2015 21:03:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:60828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YrybD-0007FL-Bn for emacs-devel@gnu.org; Mon, 11 May 2015 21:03:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YrybA-0007OF-1F for emacs-devel@gnu.org; Mon, 11 May 2015 21:03:07 -0400 Original-Received: from ironport2-out.teksavvy.com ([206.248.154.181]:56995) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Yryb9-0007Nr-Ts for emacs-devel@gnu.org; Mon, 11 May 2015 21:03:03 -0400 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRjGQJAQIBAoM+A4NwBKNjhFg X-IPAS-Result: AgUFAGvvdVRFpYts/2dsb2JhbAA3gVOhb4EIgXUBAQQBViMFCws0EhQYDSSIE6IRjGQJAQIBAoM+A4NwBKNjhFg X-IronPort-AV: E=Sophos;i="5.11,557,1422939600"; d="scan'208";a="119246848" Original-Received: from 69-165-139-108.dsl.teksavvy.com (HELO pastel.home) ([69.165.139.108]) by ironport2-out.teksavvy.com with ESMTP/TLS/DHE-RSA-AES256-SHA; 11 May 2015 21:03:01 -0400 Original-Received: by pastel.home (Postfix, from userid 20848) id 43AE43450; Mon, 11 May 2015 21:03:01 -0400 (EDT) In-Reply-To: <87zj5adchm.fsf@petton.fr> (Nicolas Petton's message of "Mon, 11 May 2015 23:35:01 +0200") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 206.248.154.181 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:186444 Archived-At: > Wouldn't that result in passing the sequence as the second argument of > `seq-elt'? Yes. Sorry, I missed that `elt' takes args in the same order as `aref' rather than `nth'. > That was the reason why I added this reversed arguments. Ah, in this case, I guess you could use pcase--flip (or equivalent). Notice that it's a macro, so the arg-reversal will take place at compile-time. Stefan