Skip to content

Commit

Permalink
Reduce fold step
Browse files Browse the repository at this point in the history
  • Loading branch information
dns2utf8 committed Sep 25, 2017
1 parent b831a92 commit a7a1e6a
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/range.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
//! use rayon::prelude::*;
//!
//! let r = (0..100u64).into_par_iter()
//! .fold(|| 0, |acc, cur| acc + cur)
//! .sum();
//!
//! // compare result with sequential calculation
Expand All @@ -30,7 +29,6 @@ use std::ops::Range;
/// .zip(0..25usize)
/// .filter(|&(x, y)| x % 5 == 0 || y % 5 == 0)
/// .map(|(x, y)| x * y)
/// .fold(|| 0, |acc, cur| acc + cur)
/// .sum::<usize>();
///
/// let s = (0..25usize).zip(0..25)
Expand Down

0 comments on commit a7a1e6a

Please sign in to comment.