Permalink
Browse files

Mention that Zop stops after the shorter list

  • Loading branch information...
TimToady committed Jun 20, 2013
1 parent 93a7eb5 commit a5592110238ade72f608124f30d97ac28d23c18b
Showing with 7 additions and 2 deletions.
  1. +7 −2 S03-operators.pod
View
@@ -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
@@ -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.

0 comments on commit a559211

Please sign in to comment.