I like D
Andrei Alexandrescu via Digitalmars-d
digitalmars-d at puremagic.com
Tue Mar 24 13:11:02 PDT 2015
On 3/24/15 11:56 AM, "Jacques =?UTF-8?B?TcO8bGxlciI=?=
<jacques.mueller at gmx.de>" wrote:
> 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);
output.writeln("\t-".repeat(nfields).joiner);
Andrei
More information about the Digitalmars-d
mailing list