fn sum<S>(self) -> Sum<Self, S>
    where
        S: std::iter::Sum<Self::Item> + std::iter::Sum<S> + Send,
    {
        Sum::new(self)
    }
/// Sums up the items in the iterator.
///
/// Note that the order in items will be reduced is not specified,
/// so if the `+` operator is not truly [associative] \(as is the
/// case for floating point numbers), then the results are not
/// fully deterministic.
///
/// [associative]: https://en.wikipedia.org/wiki/Associative_property
///
/// Basically equivalent to `self.reduce(|| 0, |a, b| a + b)`,
/// except that the type of `0` and the `+` operation may vary
/// depending on the type of value being produced.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let a = [1, 5, 7];
///
/// let sum: i32 = a.par_iter().sum().exec();
///
/// assert_eq!(sum, 13);
/// ```
Sums up the items in the iterator.
Note that the order in items will be reduced is not specified,
so if the `+` operator is not truly [associative] \(as is the
case for floating point numbers), then the results are not
fully deterministic.




Sums up the items in the iterator . Note that the order in items will be reduced is not specified so if the ` + ` operator is not truly [ associative ] \ ( as is the case for floating point numbers ) then the results are not fully deterministic .
fn sum<S>(self) -> Sum<Self, S>
    where
        S: std::iter::Sum<Self::Item> + std::iter::Sum<S> + Send,
    {
        Sum::new(self)
    }
fn sum < S > ( self ) -> Sum < Self , S > where S : std :: iter :: Sum < Self :: Item > + std :: iter :: Sum < S > + Send , { Sum :: new ( self ) }
Sums up the items in the iterator.
Sums up the items in the iterator .
self
self
examples
None