|
|
|
|
|
by kadoban
2474 days ago
|
|
You've answered your own question implicitly. The address of the starting and ending element can change. You just define yourself where in the backing array the start/end are, and let them wrap around (use modular arithmetic for the indexes). |
|
Edit: should have thought of that. Brain fart—-long day at work.