fn find_map_any<O, T>(self, operation: O) -> FindMap<Self, O>
    where
        O: Fn(Self::Item) -> Option<T> + Clone + Send + 'a,
        T: Send,
    {
        FindMap::new(self, operation, FindMatch::Any)
    }
/// Applies the given operation to the items in the parallel iterator
/// and returns **any** non-None result of the map operation.
///
/// Once a non-None value is produced from the map operation, we will
/// attempt to stop processing the rest of the items in the iterator
/// as soon as possible.
///
/// Note that this method only returns **some** item in the parallel
/// iterator that is not None from the map operation. The item returned
/// may not be the **first** non-None value produced in the parallel
/// sequence, since the entire sequence is mapped over in parallel.
///
/// # Examples
///
/// ```
/// use asparit::*;
///
/// let c = ["lol", "NaN", "5", "5"];
///
/// let found_number = c.par_iter().find_map_any(|s| s.parse().ok()).exec();
///
/// assert_eq!(found_number, Some(5));
/// ```
Applies the given operation to the items in the parallel iterator
and returns **any** non-None result of the map operation.

Once a non-None value is produced from the map operation, we will
attempt to stop processing the rest of the items in the iterator
as soon as possible.

Note that this method only returns **some** item in the parallel
iterator that is not None from the map operation. The item returned
may not be the **first** non-None value produced in the parallel
sequence, since the entire sequence is mapped over in parallel.
Applies the given operation to the items in the parallel iterator and returns ** any ** non - None result of the map operation . Once a non - None value is produced from the map operation we will attempt to stop processing the rest of the items in the iterator as soon as possible . Note that this method only returns ** some ** item in the parallel iterator that is not None from the map operation . The item returned may not be the ** first ** non - None value produced in the parallel sequence since the entire sequence is mapped over in parallel .
fn find_map_any<O, T>(self, operation: O) -> FindMap<Self, O>
    where
        O: Fn(Self::Item) -> Option<T> + Clone + Send + 'a,
        T: Send,
    {
        FindMap::new(self, operation, FindMatch::Any)
    }
fn find_map_any < O , T > ( self , operation : O ) -> FindMap < Self , O > where O : Fn ( Self :: Item ) -> Option < T > + Clone + Send + ' a , T : Send , { FindMap :: new ( self , operation , FindMatch :: Any ) }
Applies the given operation to the items in the parallel iterator
and returns **any** non-None result of the map operation.
Applies the given operation to the items in the parallel iterator and returns ** any ** non - None result of the map operation .
self
operation
O
self
operation
O
examples




let found_number = c.par_iter().find_map_any(|s| s.parse().ok()).exec().


let found_number = c . par_iter () . find_map_any ( |s| s . parse () . ok () ) . exec () .