From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Nicolas Petton Newsgroups: gmane.emacs.devel Subject: Re: [Emacs-diffs] master 387e1e1: New version of `seq-let' based on a pcase pattern Date: Tue, 12 May 2015 08:51:19 +0200 Message-ID: <87vbfycmqg.fsf@petton.fr> 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: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" X-Trace: ger.gmane.org 1431413504 3923 80.91.229.3 (12 May 2015 06:51:44 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 May 2015 06:51:44 +0000 (UTC) Cc: Nicolas Petton , emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 12 08:51:34 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 1Ys42Q-0006nh-IP for ged-emacs-devel@m.gmane.org; Tue, 12 May 2015 08:51:34 +0200 Original-Received: from localhost ([::1]:41136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys42Q-0005wF-26 for ged-emacs-devel@m.gmane.org; Tue, 12 May 2015 02:51:34 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:54942) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys42I-0005vb-Bn for emacs-devel@gnu.org; Tue, 12 May 2015 02:51:31 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ys42E-00059g-BP for emacs-devel@gnu.org; Tue, 12 May 2015 02:51:26 -0400 Original-Received: from out4-smtp.messagingengine.com ([66.111.4.28]:47916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ys42E-00059M-7q for emacs-devel@gnu.org; Tue, 12 May 2015 02:51:22 -0400 Original-Received: from compute5.internal (compute5.nyi.internal [10.202.2.45]) by mailout.nyi.internal (Postfix) with ESMTP id A77CF209AF for ; Tue, 12 May 2015 02:51:21 -0400 (EDT) Original-Received: from frontend2 ([10.202.2.161]) by compute5.internal (MEProxy); Tue, 12 May 2015 02:51:21 -0400 DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=L6fzFIZGgndD9BGXYVFv/Kh7mQA=; b=WAP0j V2V4aWvuFixwH5NIBBWIZvzNui3n1x2HLPOI1E7KrkBwqiPeMU2lpdM5iM+WstQS dpP2PugiUkWVxviBk164L0B+/huiVkHCmmLMrFFSHVDd4Js8/Pgz0Zvkjak+g05t e5W7sqro95XEmk1crniJNnUUAFc04Fxu3Okz3w= X-Sasl-enc: ZY4xFEcUlH5rlpopHlRk2LzbSye6lMF4xACwa4gF7Ved 1431413481 Original-Received: from blueberry (unknown [90.32.2.146]) by mail.messagingengine.com (Postfix) with ESMTPA id E312B6800F3; Tue, 12 May 2015 02:51:20 -0400 (EDT) In-reply-to: X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 66.111.4.28 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:186447 Archived-At: --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Stefan Monnier writes: >> 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. Thanks for the tip, I didn't know about pcase--flip. Nico =2D-=20 Nicolas Petton http://nicolas-petton.fr --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 Comment: GPGTools - http://gpgtools.org iQEcBAEBAgAGBQJVUaLnAAoJECM1h6R8IHkQSesIAMdtXwZSmU8cf7QISuOBb+G0 TSvq4bB5zGg9V3wqng/5Dx5IMqSeUVtOLYfdNiJ3F3e0toELC4QJZy6pWkUphJnT +qMJ4bembGaSiXdWdnpfE2iVy3R+VSgfYpf2aCL2O3fknPODrS5Yz5B6ZyRg2bDW T2+cN/8h8pjuVQP43SMECqJ1GV53bJxHO5SHwHiy1vbw1ZZERwQly34HmacxfjVE 4Vdj9ZF32IITDR0ISoHdjC+gW6OBleZw04D2X0N8+mgGXJp/lK2et70t42cnxpx0 NNWwjMeY4Wd9t79N1jmYr0R8PpeWQZDMOyyEcVko/P+dejRZ2MZt8UKDpIYMCsw= =h2yu -----END PGP SIGNATURE----- --=-=-=--