The more I think about it, even storage may not be useful since search order is not guaranteed. Saving something across calls is needed for counting/skipping, etc but reverse order would break that. Something to think about.
In addition, one off replaces make storage irrelevant. So providing storage would make sense just for Replace All type situations.
Last edited by KevinH; 03-24-2022 at 06:58 PM.
|