in reply to Re(3): Iterator for multidimensional arrays
in thread Iterator for multidimensional arrays

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?
  • Comment on Re: Re(3): Iterator for multidimensional arrays

Replies are listed 'Best First'.
Re: Re: Re(3): Iterator for multidimensional arrays
by shotgunefx (Parson) on Mar 25, 2002 at 03:24 UTC
    My little test is currently on the 103,000,000th permutation. It would probably be really tough if not impossible to do large sets recursively.

    -Lee

    "To be civilized is to deny one's nature."
      Yikes! I just need it to automate some testing, I know what the inputs should be (not large), but I'm trying to be lazy. In trying to be lazy, I spent more time than I would have taken me to type things in by hand. This would make a nice RPC for multiple platforms...(here we go again) Thanks!