What I am trying to do is iterating over two ranges, so that I could get (for example) every point in a 2D Array (where each nested array has the same length*).
At the moment this code wors fine for me
(0..10).map(move |w| (0..10).map(move |h| (w, h))).flatten()
but it doesn’t really look too tody. Is there a better way to do this (functiolly)?
To clarify this: I do not want to iterate over a 2D array itself, I want to have an iterator over two iterators
Thank you for taking the time and reading through this