From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Jackson Subject: Re: [PATCH OSSTEST v1 5/5] mg-show-flight-runvars: recurse on buildjobs upon request Date: Mon, 1 Feb 2016 16:53:40 +0000 Message-ID: <22191.36244.948719.456015@mariner.uk.xensource.com> References: <1454336890.28781.99.camel@citrix.com> <1454336912-28503-5-git-send-email-ian.campbell@citrix.com> <22191.30595.799006.97101@mariner.uk.xensource.com> <1454343410.28781.112.camel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: In-Reply-To: <1454343410.28781.112.camel@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Ian Campbell Cc: xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [PATCH OSSTEST v1 5/5] mg-show-flight-runvars: re= curse on buildjobs upon request"): > ITIYM: > = > =A0 =A0foreach my $row (map { $_->[1] } > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 sort { $a->[0] cmp $b->[0] } > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 map { $xform->($_) } > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 @rows) { > =A0 =A0 =A0 =A0 ... > =A0 =A0} > = > Since doing the xform-> in the sort defeats the purpose (or I don't > properly understand the Schwartzian transform) Yes. Actually, if you do that then you don't need to break out $xform->(). Sorry, my previous message said `Schwartzian transform' but uses a slightly different (and arguably inferior) idiom. Ian.