Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #310 from gfldex/master
doc list expension with * for Zip operators
  • Loading branch information
gfldex committed Jan 2, 2016
2 parents 402d4d4 + 1962a97 commit 8247afb
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 8247afb

Please sign in to comment.