On Wednesday, 6 April 2022 at 16:54:26 UTC, Steven Schveighoffer wrote:

This is almost equivalent, but it requires a lambda and an allocation. So I'm not sure what thing you are trying to do here.

I tried to get these results but it didn't work:

abc
efg
h
[0, 3]
[4, 7]
[8, 9]
abcefgh

I'm a bit old-fashioned and I don't understand these lambda stuff. That's why I coded with classical logic and indexOf...

**Source Code:**
https://forum.dlang.org/post/pxkhngxmqgiwwymmg...@forum.dlang.org

Actually, I wrote this before, with a few magic touches, I got what I wanted.

SDB@79

Reply via email to