I like D

via Digitalmars-d digitalmars-d at puremagic.com
Tue Mar 24 11:56:20 PDT 2015


On Tuesday, 24 March 2015 at 13:09:21 UTC, Steven Schveighoffer 
wrote:
> New code:
>
> immutable nfields = header.count('\t');
> ...
> output.writeln(cycle("\t-").take(2 * nfields));

output.writeln("\t-".repeat(nfields).join);


More information about the Digitalmars-d mailing list