blob: 4b752bec3d7c070a5da0c104d93215856ca9dfc6 [file] [log] [blame]
-- $Id: strcat.lua,v 1.3 2004-07-08 03:47:07 bfulgham Exp $
-- http://shootout.alioth.debian.org
-- contributed by Roberto Ierusalimschy
local n = tonumber((arg and arg[1]) or 1)
local buff = {}
for i=1,n do
table.insert(buff, "hello\n")
end
local s = table.concat(buff)
print(string.len(s))