string initialization question.

Tomek Sowiński just at ask.me
Fri Jul 30 13:28:02 PDT 2010


Dnia 30-07-2010 o 22:15:50 Tomek Sowiński <just at ask.me> napisał(a):

> writeln('-'.repeat.take(5));

Oh, and if repeat had slicing (as it should)...  '-'.repeat[0..5]
Still, it's far cry from Python's  '-' * 5

Tomek


More information about the Digitalmars-d-learn mailing list