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.
Marcone via Digitalmars-d-learn Thu, 05 Dec 2019 03:31:19 -0800
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.