How to extend the string class to return this inside the square bracket?
jfondren
julian.fondren at gmail.com
Fri Aug 13 23:08:07 UTC 2021
On Friday, 13 August 2021 at 22:09:59 UTC, Marcone wrote:
>
> Isn't there some unario operator template that I can use with
> lambda to handle a string literal?
So, something other than an exact "lit"[0..this.xx(..)] syntax is
fine?
What didn't you like about `"Hello
World!".findSplit("o")[0].writeln;` then?
What is a real example of something you want to do?
More information about the Digitalmars-d-learn
mailing list