I have a way to ::iterate the dimensions for a vector as in the first code.
Now I am using a List as in the second code and looking for
how this list will iterate in the same way as for the vector but have problem to find examples of this.
I have begun some code for the list but something might be missing.

Note, though, that's List, not std::list (as was stipulated in the vector example). Is this a CLI List? I don't know about iterators with that, but I'm sure there's an easy way to iterate through it, but having never used it I don't know.