Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
doc list expension with * for Zip operators
  • Loading branch information
gfldex committed Jan 2, 2016
1 parent 51383a7 commit 1962a97
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions doc/Language/operators.pod
Expand Up @@ -293,9 +293,11 @@ one left, one right, from it's arguments. The resulting list is returned.
my @l = <a b c> Z~ 1,2,3; # [a1 b2 c3]
If one of the operands runs out of elements prematurely, the zip operator will
stop. An infinite list can be used to repeat elements.
stop. An infinite list can be used to repeat elements. A list with a final
element of C<*> will repeat it's 2nd last element indefinitely.
my @l = <a b c d> Z~ ':' xx *; [a: b: c: d:]
my @l = <a b c d> Z~ ':' xx *; # <a: b: c: d:>
my @l = <a b c d> Z~ 1, 2, *; # <a1 b2 c2 d2>
=head2 Sequential Operators
Expand Down

0 comments on commit 1962a97

Please sign in to comment.