How can I directly reffer literal element itself inside [] slice?
Marcone
marcone at email.com
Mon Jan 11 15:45:51 UTC 2021
I can reffer length of literal string using $.
"Hello World"[0..$]
But I want make like it witout use variable name.
"Hello World"[0..?.indexOf("o")]
More information about the Digitalmars-d-learn
mailing list