3 ms·
I think Rusts terseness shows here - I think C#'s approach is the best. Also, if you don't use `.ToArray()`, you still have an IEnumerable which is very usable.
by maccard 2y ago
I think Rusts terseness shows here - I think C#'s approach is the best. Also, if you don't use `.ToArray()`, you still have an IEnumerable which is very usable.
- School-Cotton 2y agoAlso 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"))