--- Comment #1 from 2012-01-12 10:53:09 PST ---
This function is handy because the alternative is to use code like this, that
is much longer (3 or 4 lines long), it's not a single expression, and it needs
two copies of the original string (or a copy and a cast, or a copy and one
assume unique):

import std.algorithm: reverse;
void main() {
    string s = "red";
    char[] s1 = s.dup;
    string sr = s1.idup;

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to