Revision 29627

Date:
2010/02/03 01:32:19
Author:
lwall
Revision Log:
[S32/Containers] last @@ removal not counting S09
Files:

Legend:

 
Added
 
Removed
 
Modified
  • docs/Perl6/Spec/S32-setting-library/Containers.pod

     
    19 19
    20 20 Created: 19 Feb 2009 extracted from S29-functions.pod
    21 21
    22 Last Modified: 21 Jan 2010
    23 Version: 14
    22 Last Modified: 2 Feb 2010
    23 Version: 15
    24 24
    25 25 The document is a draft.
    26 26
     
    50 50
    51 51 =item cat
    52 52
    53 our Cat multi cat( *@@list )
    53 our Cat multi cat( **@list )
    54 54
    55 55 C<cat> reads arrays serially rather than in parallel as C<zip> does. It
    56 56 returns all of the elements of the containers that were passed to it
     
    67 67
    68 68 =item roundrobin
    69 69
    70 our Parcel multi roundrobin( *@@list )
    70 our Parcel multi roundrobin( **@list )
    71 71
    72 72 C<roundrobin> is very similar to C<zip>. The difference is that
    73 73 C<roundrobin> will not stop on lists that run out of elements but
     
    82 82
    83 83 =item zip
    84 84
    85 our Parcel of Parcel multi zip ( *@@list )
    86 our Parcel of Parcel multi infix:<Z> ( *@@list )
    85 our Parcel of Parcel multi zip ( **@list )
    86 our Parcel of Parcel multi infix:<Z> ( **@list )
    87 87
    88 88 zip takes any number of arrays and returns one tuple for every index.
    89 89 This is easier to read in an example:
     
    108 108
    109 109 for @a Z @b Z @c -> $a, $b, $c {...}
    110 110
    111 In C<@@> context an Array of Array is returned instead of flat list.
    111 In slice context a list of C<Seq> is returned instead of a flat list.
    112 112
    113 113 =back
    114 114