Check whether a range is empty

vino.B bheeman.vino at hotmail.com
Fri Jul 13 18:37:35 UTC 2018


Hi All,

   How do i check whether a range is empty. eg. 
(!PFResutl.toRange).empty. I tired the below, but it is no 
printing Empty if the range is empty it just prints blank line.

if (!(!PFResutl.toRange).empty) { writeln("Empty"); }


From,
Vino.B




More information about the Digitalmars-d-learn mailing list