Multiply a string?
H. S. Teoh
hsteoh at qfbox.info
Sat Jun 21 16:23:42 UTC 2025
On Sat, Jun 21, 2025 at 04:18:37PM +0000, Neto via Digitalmars-d-learn wrote:
> On Saturday, 7 June 2025 at 16:42:51 UTC, Sergey wrote:
[...]
> > ```d
> > void main() {
> > string error_message = "D's desing is far from perfect";
> > writeln(" ".repeat(5).join, "[INFO]:", Clock.currTime(), " - ",
> > error_message);
> > }
> > ```
>
> is `repeat` from a native module? if so, which one?
std.range
T
--
Elegant or ugly code as well as fine or rude sentences have something in common: they don't depend on the language. -- Luca De Vitis
More information about the Digitalmars-d-learn
mailing list