Skip to content

Commit b302ab3

Browse files
authored
Implement Zip for up to 9 producers
1 parent 8ff477f commit b302ab3

File tree

3 files changed

+17
-2
lines changed

3 files changed

+17
-2
lines changed

src/parallel/impl_par_methods.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,5 +196,8 @@ zip_impl! {
196196
[true P1 P2 P3],
197197
[true P1 P2 P3 P4],
198198
[true P1 P2 P3 P4 P5],
199-
[false P1 P2 P3 P4 P5 P6],
199+
[true P1 P2 P3 P4 P5 P6],
200+
[true P1 P2 P3 P4 P5 P6 P7],
201+
[true P1 P2 P3 P4 P5 P6 P7 P8],
202+
[false P1 P2 P3 P4 P5 P6 P7 P8 P9],
200203
}

src/parallel/par.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,9 @@ zip_impl! {
307307
[P1 P2 P3 P4],
308308
[P1 P2 P3 P4 P5],
309309
[P1 P2 P3 P4 P5 P6],
310+
[P1 P2 P3 P4 P5 P6 P7],
311+
[P1 P2 P3 P4 P5 P6 P7 P8],
312+
[P1 P2 P3 P4 P5 P6 P7 P8 P9],
310313
}
311314

312315
impl<D, Parts> Parallel<Zip<Parts, D>>

src/zip/mod.rs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,6 +504,9 @@ offset_impl! {
504504
[A B C D][ a b c d],
505505
[A B C D E][ a b c d e],
506506
[A B C D E F][ a b c d e f],
507+
[A B C D E F G][ a b c d e f g],
508+
[A B C D E F G H][ a b c d e f g h],
509+
[A B C D E F G H I][ a b c d e f g h i],
507510
}
508511

509512
macro_rules! zipt_impl {
@@ -563,6 +566,9 @@ zipt_impl! {
563566
[A B C D][ a b c d],
564567
[A B C D E][ a b c d e],
565568
[A B C D E F][ a b c d e f],
569+
[A B C D E F G][ a b c d e f g],
570+
[A B C D E F G H][ a b c d e f g h],
571+
[A B C D E F G H I][ a b c d e f g h i],
566572
}
567573

568574
macro_rules! map_impl {
@@ -914,7 +920,10 @@ map_impl! {
914920
[true P1 P2 P3],
915921
[true P1 P2 P3 P4],
916922
[true P1 P2 P3 P4 P5],
917-
[false P1 P2 P3 P4 P5 P6],
923+
[true P1 P2 P3 P4 P5 P6],
924+
[true P1 P2 P3 P4 P5 P6 P7],
925+
[true P1 P2 P3 P4 P5 P6 P7 P8],
926+
[false P1 P2 P3 P4 P5 P6 P7 P8 P9],
918927
}
919928

920929
/// Value controlling the execution of `.fold_while` on `Zip`.

0 commit comments

Comments
 (0)