It's the kind of thing where I'd use nested for loops if I knew ahead of time how many dimensions I needed, but for a variable number of dimensions I can't set a level of nesting directly in the code.
Pointers in the right direction would be much obliged.
In reply to loop over n-dimensional lattice by 0AP0
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |