iterator
iter()
Returns an iterator over the sliceinto_iter()
Creates a consuming iterator, that is, one that moves each value out of the vectoriter_mut()
Returns an iterator that allows modifying each value.
flat_map
1 | /// Creates an iterator that works like map, but flattens nested structure. |
Examples
1 | let words = ["alpha", "beta", "gamma"]; |