zettacode.files/hello_world.text/lua.txt in zettacode-0.1.0 vs zettacode.files/hello_world.text/lua.txt in zettacode-0.1.1
- old
+ new
@@ -1,12 +1,12 @@
-Fuc c b cuc u qu .
- "Ho wod!"
+Function calls with either a string literal or a table constructor passed as their only argument do not require parentheses.
+print "Hello world!"
-H b:
+Harder way with a table:
-c c = {"G","","","","b","","",","," ","W","","","","","!"}
-f = 1, #c
- .(c[])
-
--- :
-(b.cc(c))
+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))