Add property setting to chain
closescreen via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Sat Jul 15 12:53:34 PDT 2017
Let i have code:
Clock.currTime.to!DateTime.Interval!DateTime( 24.hours
).fwdRange( h=>h+1.hours ).writeln;
Now if i want to set the minute=0 and second=0 without breaking
chain, what i should do?
I think about somewhat like:
with( Clock.currTime.to!DateTime){
minute=0;
second=0
}.Interval!DateTime( 24.hours ).fwdRange( h=>h+1.hours ).writeln;
But it is wrong, because 'with' not return me anything.
More information about the Digitalmars-d-learn
mailing list