Slice/Substr [0..?lastIndexOf(".")] How refer itself without create a variable?
Marcone
marcone at email.com
Thu Dec 5 11:28:51 UTC 2019
Simple example:
writeln("Hi\nHow are
you?\nGood".splitLines()[0][0..?lastIndexOf(r"\")]);
How to refer to this string in lastIndexOf() without create a
variable?
Thank you.
More information about the Digitalmars-d-learn
mailing list