38 ms·
Also true in Rust. You don't have to use `collect` at the end and you still get an iterator. let results = foo .into_iter() .filter
by School-Cotton 2y ago
Also true in Rust. You don't have to use `collect` at the end and you still get an iterator.
let results = foo
.into_iter()
.filter(|s| s.contains("banned"))