Formatted output ranges

Ivan Kazmenko via Digitalmars-d-learn digitalmars-d-learn at puremagic.com
Mon Apr 20 10:16:20 PDT 2015


> Yes, it's a lot better but I did not get to concatenate the 
> string ";;" in each paragraph:
>
> -----
> import std.conv, std.stdio, std.range, std.string;
>
> void main() {
>
> 	auto a = iota(10, 1101).text;
>
> 	a = a[1 .. $ - 1], a ~= '.';
>
> 	writeln(wrap(a, 30));
> }
> -----
> http://ideone.com/jsSbKj

	writeln(wrap(a, 30, ";; ", ";; "));

Works with dmd 2.066.1 and 2.067.0.


More information about the Digitalmars-d-learn mailing list