Skip to main content

flatten

Function flatten 

Source
pub fn flatten<T: Clone>(values: &[Vec<T>]) -> Vec<T>
Expand description

Flattens a nested collection into a flat iterator

Due to Rust’s type system, this is implemented as a recursive function that works on specific types rather than a generic flatten.