Stride

RenatoL rexlen at gmail.com
Tue Feb 14 12:59:20 PST 2012


mmmhhh.... this is interesting nevertheless i don't understand the
solution of my problem, and i cannot even understand it's origin:

void main()
{
    string s1 = "abcd";
    s1 = s1[stride(s1,0)..1] ~ 'r' ~ s1[2..$];
    writeln(s1);
}

why there is not way i cannot achive "arcd"?


More information about the Digitalmars-d-learn mailing list