A few days ago I was looking for a small task to help within Perl 6 development while learning it. After asking around, I started looking at the perl6-language archives and AES for reference. Wanting to try some code using loops, I read about zip(). I found a few different (and somewhat conflicting?) references to the ways it cuold be used:

zip(@a,@b,...) zip(@a;@b;...) zip(@a,@b,...,by=>3) zip(@a=>3,@b=>2,...)

It wasn't clear whether by should be supported or not, whether it should have semi-colons or commas as argument separators and whether the numeric options should work or were dropped entirely. As far as I could tell, the svn version of pugs only accepts the first form. I also found a discussion about zip() and weave() - but couldn't find weave() anywhere else.
Of course, I'm new to perl6, so I know almost nothing about how these should work within pugs or in a more finished perl6 (and I'm surely missing information!).
Having some documentation dealing with issues like these would help a lot of people in my position to get up to speed with it.

-- ank

Update Fixed grammar, spelling


In reply to Re: Yet Another Way To Get Involved With Perl6 by ank
in thread Yet Another Way To Get Involved With Perl6 by Limbic~Region

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.