in reply to Re: Re: getting my neighbours in an N-dimensional space
in thread getting my neighbours in an N-dimensional space

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")
  • Comment on (tye)Re3: getting my neighbours in an N-dimensional space