Stride

RenatoL rexlen at gmail.com
Sun Feb 12 10:25:51 PST 2012


This is the code i compiled v. 2057 and parameters 0 1
import std.stdio;
import std.utf;
void main()
{
    string s1 = "abcd";
    s1 = s1[stride(s1,0)..1] ~ 'r' ~ s1[2..$];
    writeln(s1);
}


More information about the Digitalmars-d-learn mailing list