Changeset 15327 for docs/Perl6/Spec
- Timestamp:
- 02/22/07 20:20:59 (21 months ago)
- Files:
-
- 1 modified
-
docs/Perl6/Spec/Functions.pod (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
docs/Perl6/Spec/Functions.pod
r15254 r15327 510 510 511 511 our Iterator multi Container::zip ( Bool :$shortest, Bool :$finite, *@@list ) 512 our Iterator multi infix:Container::¥ ( Bool :$shortest, Bool :$finite, *@@list ) 513 our Iterator multi infix:Container::Y ( Bool :$shortest, Bool :$finite, *@@list ) 512 our Iterator multi infix:Container::Z ( Bool :$shortest, Bool :$finite, *@@list ) 514 513 515 514 zip takes any number of arrays and returns one tuple for every index. 516 515 This is easier to read in an example: 517 516 518 for zip(@a;@b;@c) -> [$nth_a,$nth_b,$nth_c]{517 for zip(@a;@b;@c) -> $nth_a, $nth_b, $nth_c { 519 518 ... 520 519 } … … 531 530 at run-time to represent infinite ranges are left. 532 531 533 C< ¥> (and its ASCII equivalent, C<Y>)is an infix equivalent for zip:534 535 for @a ¥ @b ¥ @c -> [$a,$b,$c]{...}532 C<Z> is an infix equivalent for zip: 533 534 for @a Z @b Z @c -> $a, $b, $c {...} 536 535 537 536 =back
