Is it possible to split a vector into groups of 10 with iterators?
There is no such helper method on the Iterator trait directly. However, there are two main ways to do it: Use the [T]::chunks() method (which can be called on a Vec<T> directly). However, it has a minor difference: it won’t produce None, but the last iteration yields a smaller slice. For always-exact slices that omit … Read more