Loading RustViz Engine...
Flatten 2D matrices and optional streams into a single iterator sequence.
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 flatten_matrix<T>(matrix: Vec<Vec<T>>) -> Vec<T> {
matrix.into_iter().flatten().collect()
}