Skip to content

Commit

Permalink
Mention that Zop stops after the shorter list
Browse files Browse the repository at this point in the history
  • Loading branch information
TimToady committed Jun 20, 2013
1 parent 93a7eb5 commit a559211
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions S03-operators.pod
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Synopsis 3: Perl 6 Operators

Created: 8 Mar 2004

Last Modified: 29 May 2013
Version: 264
Last Modified: 20 Jun 2013
Version: 265

=head1 Overview

Expand Down Expand Up @@ -4814,6 +4814,11 @@ In fact, though the C<Z> operators are all list associative
syntactically, the underlying operator is always applied with its
own associativity, just as the corresponding reduce operator would do.

The zip operation terminates when either of its lists terminates.
(Do not use C<Zeq> or C<Z==> to compare two arrays, for instance,
unless you want to know if one array is a prefix of the other.
Use C<»eq«> or C<»==«> for that. Or better, just use C<eqv>.)

Note that, unlike the C<X> operator, all the terms of a C<Z> operator
may reasonably be infinite lists, since zipping is lazy.

Expand Down

0 comments on commit a559211

Please sign in to comment.