Str.count to allow counting of overlapping substrings (original) (raw)
June 15, 2025, 7:02pm 3
I noted this and will consider it together with other potential extensions for string search when the time comes.
Thanks, it’s just an idea for consideration. I don’t claim that counting overlapping substrings is the most pressing problem, but it certainly comes up in different domains (bioinformatics, NLP, CS, information theory, to think of a few), and surely a built-in, standard solution is preferable to each person writing their own code. I see at least some prior discussion on this.