I read my message. Sorry for my poor english and typos.
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;
I have a file with empty lines: 2,3 and 5,6
filename.csv (with linenumbers for better view in this message)
1>Joe,Carpenter,30
2>
3>
4>Fred,Blacksmith,40
5>
6>
Now, if I run:
rdmd
--eval='"filename.csv".File.byRecord!(string,string,int)("%s,%s,%d").writeln'
It prints:
Hello, all.
Is it possible to pass cli args to rdmd eval-program?
F.e. if I try:
rdmd --eval="args.writeln" -- 123
then: Cannot have both --eval and a program file ('123')
In perl it's possible:
perl -e'print join ",", @ARGV' 123 234
# 123,234
Thanks for reply, Ali.
I found this solution:
Clock.currTime.to!DateTime.pipe!( dt=>(dt.minute=0,dt.second=0,
dt) ).Interval!DateTime( 24.hours ).fwdRange( h=>h+1.hours
).writeln;
Or:
Clock.currTime.to!DateTime.pipe!( "a.minute=0, a.second=0, a"
).Interval!DateTime( 24.hours ).fwdRange( h=>h+1.hours ).writeln;
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