std.algorithm.splitter on string inserts \\ for every occurrence of \
Adam D. Ruppe via Digitalmars-d-learn
digitalmars-d-learn at puremagic.com
Thu Jun 19 19:42:45 PDT 2014
On Friday, 20 June 2014 at 02:41:06 UTC, WhatMeWorry wrote:
> The function is perfect except it converts \ to \\.
The function isn't doing that conversion, that's just because
when you do writeln() on a range or array, it prints it out in a
format that can be read back. That's also why it put the [] and
quotes around the entries - they weren't literally in the result
string, it was just a printing convention.
More information about the Digitalmars-d-learn
mailing list