Skip to main content

flat_map

Function flat_map 

Source
pub const fn flat_map<Func, In, IntoIter, Meta, Next>(
    func: Func,
    next: Next,
) -> FlatMap<Next, Func, IntoIter, Meta>
where Func: FnMut(In) -> IntoIter, IntoIter: IntoIterator, Meta: Copy, Next: Push<IntoIter::Item, Meta>,
Expand description

Creates a FlatMap push that maps each item to an iterator and flattens the results.