On Monday, 21 May 2012 at 03:53:08 UTC, Mehrdad wrote:
Hmmm... so if you have some (complicated) random-access range, and then you want to overload opApply() (perhaps to let the user use multiple loop variables), how are you supposed to do this without duplicating your code?
Your random-access range has opIndex and a length. Just iterate over it using a normal for loop.
