Yeah... that's does the trick. I had been working on a version that didn't calc all possible indexes beforehand (but now I'll stop).
I'll try calling it "a function that returns all possible vectors in a discrete n-dimensional space." It that trekkie enough?