Function zip_fill::zip_longest_with[][src]

pub fn zip_longest_with<L, R, T, F>(
    left: L,
    right: R,
    fill_value: L::Item,
    f: F
) -> impl Iterator<Item = T> where
    L::Item: Clone,
    L: IntoIterator,
    R: IntoIterator<Item = L::Item>,
    F: FnMut(L::Item, L::Item) -> T, 
Expand description

Zip two iterators with the given function extending the shorter one with the provided fill_value.

Arguments

  • left - first iterator
  • right - second iterator
  • fill_value - default value
  • f - function used to zip the two iterators