Same! =D
You don't have flatten, but you can easily replace it with flat_map:
let a = [vec![1, 3, 5], vec![7, 9]]; // let flat = a.iter().flatten().collect::<Vec<_>>(); let flat = a.iter().flat_map(|x| x).collect::<Vec<_>>(); println!("{:?}", flat);
Read the post below and its answers.
Loading collection data...
Same! =D
You don't have flatten, but you can easily replace it with flat_map:
Read the post below and its answers.