Sha256: 55057b07d758f24e6ac541269dcbe05381ab8f1b05cd5f88a3a451c5484787a8

Contents?: true

Size: 331 Bytes

Versions: 10

Compression:

Stored size: 331 Bytes

Contents

Function calls with either a string literal or a table constructor passed as their only argument do not require parentheses.
print "Hello world!"

Harder way with a table:
 
local chars = {"G","o","o","d","b","y","e",","," ","W","o","r","l","d","!"}
for i = 1, #chars do
  io.write(chars[i])
end
-- or:
print(table.concat(chars))

Version data entries

10 entries across 7 versions & 1 rubygems

Version Path
zettacode-0.1.7 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.6 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.6 files.zettacode2/hello_world.text/lua.txt
zettacode-0.1.5 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.5 files.zettacode2/hello_world.text/lua.txt
zettacode-0.1.4 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.4 files.zettacode2/hello_world.text/lua.txt
zettacode-0.1.3 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.2 files.zettacode/hello_world.text/lua.txt
zettacode-0.1.1 zettacode.files/hello_world.text/lua.txt