| |
 | Posted by H. S. Teoh in reply to Neto | Permalink Reply |
|
H. S. Teoh 
| 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
|