From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6235 invoked by alias); 4 Aug 2014 16:17:49 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 32948 Received: (qmail 16681 invoked from network); 4 Aug 2014 16:17:47 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_HI, SPF_HELO_PASS autolearn=ham version=3.3.2 X-AuditID: cbfec7f4-b7f156d0000063c7-35-53dfafcb307b Date: Mon, 04 Aug 2014 17:07:37 +0100 From: Peter Stephenson To: zsh workers Subject: Re: PATCH: Add :^ syntax for zipping two arrays (v2) Message-id: <20140804170737.401d8a75@pwslap01u.europe.root.pri> In-reply-to: References: <1406908058-7730-1-git-send-email-mikachu@gmail.com> <20140804092900.5d44667a@pwslap01u.europe.root.pri> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFupmluLIzCtJLcpLzFFi42I5/e/4Fd3T6+8HG1yZL2FxsPkhkwOjx6qD H5gCGKO4bFJSczLLUov07RK4Mo5+bmItmMVWserverYGxg8sXYwcHBICJhKfHnh2MXICmWIS F+6tZ+ti5OIQEljKKHHx2CYWkISQwHImiXM7NEFsFgFVif13LjOB2GwChhJTN81mBLFFgOLN 3/+B1QsL2Eqc3L2DGWQ+r4C9RON9sFZOgWCJn697GSHm72WUaFx/jA0kwS+gL3H17ycmiCPs JWZeOQM2k1dAUOLH5HtgM5kFtCQ2b2tihbDlJTavecs8gVFgFpKyWUjKZiEpW8DIvIpRNLU0 uaA4KT3XUK84Mbe4NC9dLzk/dxMjJAC/7GBcfMzqEKMAB6MSD6/B6bvBQqyJZcWVuYcYJTiY lUR4Fyy8HyzEm5JYWZValB9fVJqTWnyIkYmDU6qBkWeF59etVbZ64dXa6fv1Dv2curQyJZiT Y82UitXCcQ8PMVv4J60Tddm1+WWG9q82tsZTKZLWN9Mfq91Pe2zi0Oxa1clSKev9Wc9yZWm8 keqMl2naahOePd/v8PZzsWNUesPTPZqOf7cyXzmu3fbxXbfDiYPJfwO2CHw9euvIPL3FJirV YV+nK7EUZyQaajEXFScCAC3iSKQeAgAA On Mon, 04 Aug 2014 18:01:51 +0200 Mikael Magnusson wrote: > On 4 August 2014 10:29, Peter Stephenson wrote: > > On Fri, 01 Aug 2014 17:47:38 +0200 > > Mikael Magnusson wrote: > >> Here's my current version with :^ and :^^ and using heap alloc > >> including hmkarray. > > > > Looks OK to me, if you want to commit it. > > > > pws > > What about the issue with "${a:^a}" producing more than one argument? > Just to make sure you're okay with that and didn't just miss it in the > original mail. I'll also add some tests before committing. As long as it's documented that's what it does (and if it's likely to change at some point that should be documented, too) it doesn't seem a fatal problem. pws