Loading RustViz Engine...
Process items in chunks of size N using built-in slice .chunks() and .windows().
This problem is currently in blueprint template mode. Once the concept foundation is finalized, live in-browser WebAssembly compilation and test assertion runners will be enabled here.
pub fn sum_chunks(slice: &[i32], chunk_size: usize) -> Vec<i32> {
slice.chunks(chunk_size).map(|c| c.iter().sum()).collect()
}