develooper Front page | perl.perl6.language | Postings from August 2006

Re: Pair of lists => list of pairs?

Thread Previous | Thread Next
From:
Juerd
Date:
August 23, 2006 15:14
Subject:
Re: Pair of lists => list of pairs?
Message ID:
20060823214256.GL23268@c4.convolution.nl
Mark J. Reed skribis 2006-08-23 17:43 (-0400):
> But is there an easy way in Perl6 to do it all in one go?  Should this work?
> my %h = @k [=>] @v;

Hyper is not [], but >><<. And >>=><< works perfectly in Pugs, and does
exactly what you describe.

[] is for reduction, and is prefix: [+] 1,2,3


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About