tracks/rust/exercises/accumulate/example.rs in trackler-2.2.1.179 vs tracks/rust/exercises/accumulate/example.rs in trackler-2.2.1.180

- old
+ new

@@ -4,10 +4,13 @@ out.push(f(val)) } out } -pub fn map_closure<F>(values: Vec<i32>, f: F) -> Vec<i32> where F: Fn(i32) -> i32 { +pub fn map_closure<F>(values: Vec<i32>, f: F) -> Vec<i32> +where + F: Fn(i32) -> i32, +{ let mut out: Vec<i32> = vec![]; for val in values { out.push(f(val)) } out