cheat sheet functions

dofile()

type() -- returns var type e.g. number

table.concat()
table.foreach(tale,f)
table.foreachi(table,f)
table.insert()
table.sort()
table.getn()
table.setn()
table.remove()

metatable() 
rawget()

while do
for do
repeat until
if then
return
break

io.close
io.flush
io.input
io.lines
io.open(file,mode)
r = read
w = write
r+ = update
w+ = update
a+ = write to end of file
io.output()
io.read()
io.tmpfile() - removed when prgram ends
io.type()
io.write() *
file:close
file:flush = save any written data to file


math.abs()
math.ceil()
math.log()
math.pow()
math.frexp()
math.acos()
math.cos()
math.log10()
math.rad()
math.ldexp()
math.asin()
math.dog()
math.max()
math.sin()
math.random()
math.atan()
math.exp()
math.sin()
math.sqrt()
math.random()
math.randomseed()
math.atan2()
math.floor()
math.mod()
math.tan()

