lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


Florian,

I actually didn't try using string.rep() because I veered away when I read its documentation that said it "concatenates". So it did not sound like the tool to use.

Michael

----- Original Message ----- From: "Florian Weimer" <fw@deneb.enyo.de>
To: <lua@bazar2.conectiva.com.br>
Sent: Wednesday, August 19, 2009 1:40 PM
Subject: Re: Simple way to create a big string of blanks?


* Michael Newberry:

What if n = 50,003 or something? Is it doing 50,002 concatenations?

No, apparently not, otherwise it run-time would be unbearable.