pub fn rep<A: Clone + 'static + FromStr, F, G>(
vm: &mut RoundVM,
init: F,
fun: G,
) -> AExpand description
Iteratively updates the value of the input expression at each device using the last computed value.
§Arguments
vmthe current VMinitthe initial valuefunthe function to apply to the value
§Generic Parameters
AThe type of value returned by the expression.F- The type of the closure, which must be a closure that takes no arguments and returns a value of typeA.G- The type of the closure, which must be a closure that takes a tuple(RoundVM, A)and returns a tuple(RoundVM, A).
§Returns
the updated value