Note that I didn't choose a closure because it is sexy. I chose it because I wanted to produce an iterator so that I didn't have to worry about when 3**$N would get too large that I start running out of memory. Perhaps you were only worried about very small values of $N. And I just prefer iterators. (:
- tye (but my friends call me "Tye")In reply to (tye)Re3: getting my neighbours in an N-dimensional space
by tye
in thread getting my neighbours in an N-dimensional space
by dash2
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |