lua -lluarocks.require
require "luarocks.require"
https://stackoverflow.com/questions/9168058/how-to-dump-a-table-to-console#9168316
local pp = require 'pl.pretty'
local t = { a = { b = { c = 'Hello world!', 1 }, 2, d = { 3 } } }
pp.dump(t)String literals https://stackoverflow.com/questions/17202195/difference-between-and-within-lua#17202311
-- Double quotes enclosed in single quotes.
s = 'My friend said: "Hi!!"'
-- Single quotes enclosed in double quotes.
s = "My friend said: 'Hi!!'"
-- Single and double quotes enclosed in double brackets.
s = [[My friend said: "What's up?"]]
- Discussion
- Wiki page
- Also Date rock available
luarocks search your_rock
luarocks list your_rock
luarocks install your_rock
luarocks install --local your_rock
luarocks remove your_rock