[][src]Function nyx::iter::call

pub fn call<I, T>(
    iter: impl IntoIterator<Item = T, IntoIter = I>,
    f: impl FnMut(Bps)
) -> Map<I, impl FnMut(T) -> T> where
    I: Iterator<Item = T>, 

Creates an iterator that yields the bytes by calling the provided function.

Examples

use std::iter;

fn main() {
    nyx::iter::call(iter::repeat(0), |bps| println!("{}", bps)).for_each(|_| ());
}