Closed lrvideckis closed 1 month ago
regarding op: Box<dyn Fn(T, T) -> T>, instead of just op: fn(T, T) -> T,
op: Box<dyn Fn(T, T) -> T>,
op: fn(T, T) -> T,
This is what I had to do to allow the lambda/closure to capture outside variables (in this case the mod md)
md
regarding
op: Box<dyn Fn(T, T) -> T>,
instead of justop: fn(T, T) -> T,
This is what I had to do to allow the lambda/closure to capture outside variables (in this case the mod
md
)