Skip to main content

fold

Function fold 

Source
pub fn fold<S: Slot<HashMap<K, V>>, K, V, B>(
    step: impl FnMut(B, &K, &V) -> B,
    init: B,
    map: &S,
) -> B
Expand description

The entries come in the order to_array lists them, which is the order of the model.