fn max_by<O>(self, operation: O) -> MaxBy<Self, O>
    where
        O: Fn(&Self::Item, &Self::Item) -> Ordering + Clone + Send + Sync + 'a,
    {
        MaxBy::new(self, operation)
    }
/// Computes the maximum of all the items in the iterator with respect to
/// the given comparison function. If the iterator is empty, `None` is
/// returned; otherwise, `Some(min)` is returned.
///
/// Note that the order in which the items will be reduced is not
/// specified, so if the comparison function is not associative, then
/// the results are not deterministic.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let a = [-3_i32, 77, 53, 240, -1];
///
/// assert_eq!(
///     a.par_iter().max_by(|x, y| x.abs().cmp(&y.abs())).exec(),
///     Some(&240)
/// );
/// ```
Computes the maximum of all the items in the iterator with respect to
the given comparison function. If the iterator is empty, `None` is
returned; otherwise, `Some(min)` is returned.

Note that the order in which the items will be reduced is not
specified, so if the comparison function is not associative, then
the results are not deterministic.
Computes the maximum of all the items in the iterator with respect to the given comparison function . If the iterator is empty ` None ` is returned ; otherwise ` Some ( min ) ` is returned . Note that the order in which the items will be reduced is not specified so if the comparison function is not associative then the results are not deterministic .
fn max_by<O>(self, operation: O) -> MaxBy<Self, O>
    where
        O: Fn(&Self::Item, &Self::Item) -> Ordering + Clone + Send + Sync + 'a,
    {
        MaxBy::new(self, operation)
    }
fn max_by < O > ( self , operation : O ) -> MaxBy < Self , O > where O : Fn ( & Self :: Item , & Self :: Item ) -> Ordering + Clone + Send + Sync + ' a , { MaxBy :: new ( self , operation ) }
Computes the maximum of all the items in the iterator with respect to
the given comparison function.
Computes the maximum of all the items in the iterator with respect to the given comparison function .
self
operation
O
self
operation
O
examples
None