Skip to main content

each

Function each 

Source
pub fn each<R: Send, S: Default>(
    count: usize,
    f: impl Fn(usize, &mut S) -> R + Sync,
) -> Result<Vec<R>, Error>
Expand description

f(i, scratch) of each cell i of a stack of count cells, in order, as [each_cell] runs them: stack for a result of any type, one for each cell.