fn flat_map<F, SO>(self, func: F) -> Flatmap<Self, F>
        where Self: Sized,
              F: FnMut(Self::Item) -> SO,
              SO: Stream
    {
        Flatmap::new(self, func)
    }
/// Creates an stream that works like map, but flattens nested structure.
/// The `map()` adapter is very useful, but only when the closure argument
/// produces values. If it produces a stream instead, there's an extra layer
/// of indirection. flat_map() will remove this extra layer on its own.
///
/// Another way of thinking about flat_map(): map()'s closure returns one
/// item for each element, and flat_map()'s closure returns a stream for
/// each element.
///
/// # Examples
///
/// ```
/// use asyncplify::*;
///
/// let vec = (0..4i32)
///     .into_stream()
///     .flat_map(|v| once(v + 10))
///     .into_vec();
///
/// assert!(vec == [10, 11, 12, 13], "vec = {:?}", vec);
/// ```
Creates an stream that works like map, but flattens nested structure.
The `map()` adapter is very useful, but only when the closure argument
produces values. If it produces a stream instead, there's an extra layer
of indirection. flat_map() will remove this extra layer on its own.

Another way of thinking about flat_map(): map()'s closure returns one
item for each element, and flat_map()'s closure returns a stream for
each element.
Creates an stream that works like map but flattens nested structure . The ` map () ` adapter is very useful but only when the closure argument produces values . If it produces a stream instead there ' s an extra layer of indirection . flat_map () will remove this extra layer on its own . Another way of thinking about flat_map () : map () ' s closure returns one item for each element and flat_map () ' s closure returns a stream for each element .
fn flat_map<F, SO>(self, func: F) -> Flatmap<Self, F>
        where Self: Sized,
              F: FnMut(Self::Item) -> SO,
              SO: Stream
    {
        Flatmap::new(self, func)
    }
fn flat_map < F , SO > ( self , func : F ) -> Flatmap < Self , F > where Self : Sized , F : FnMut ( Self :: Item ) -> SO , SO : Stream { Flatmap :: new ( self , func ) }
Creates an stream that works like map, but flattens nested structure.
Creates an stream that works like map but flattens nested structure .
self
func
F
self
func
F
examples
```
use asyncplify::*.




` ` ` use asyncplify :: * .