3 ms·
I've ran into that exact same problem before too. My solution would be just to have a Vec<Range<usize>> instead. Then you can generate the substrings on the fly
by conradludgate 5y ago
I've ran into that exact same problem before too. My solution would be just to have a Vec<Range<usize>> instead. Then you can generate the substrings on the fly when you need to use them