How to test tuple in chain
closescreen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Mon Jul 31 05:16:38 PDT 2017
Hello!
If I want testing tuple member in functional manner, what I shoul
do?
Example:
"ls -l".executeShell returns me tuple (int "status", string
"output")
I want write somthing like:
"ls -l".executeShell.smthTestingOperation!"Error: bad status."(
res => res.status==0 ).output.writeln;
(where "smthTestingOperation" - is function which I want to find
in std )
More information about the Digitalmars-d-learn
mailing list