programming-team-code / programming_team_code_rust

rustaceans
Creative Commons Zero v1.0 Universal
2 stars 0 forks source link

Point seg tree #51

Closed lrvideckis closed 1 month ago

lrvideckis commented 1 month ago

regarding op: Box<dyn Fn(T, T) -> T>, instead of just 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)