Stride

RenatoL rexlen at gmail.com
Sun Feb 12 11:05:36 PST 2012


Mmmm.... this doesn't compile....

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

Error: undefined identifier stride, did you mean alias string?


More information about the Digitalmars-d-learn mailing list