nitrous24/Lua — pull request #3 by nitrous24 (2013-03-12 19:36:52+00:00)
Title: asd

Added to mathhelper:
math.even(num) - returns true if num is even
math.odd(num)- returns true if num is odd
math.sum(val1, val2) - returns val1+val2
math.mult(val1, val2) - returns val1*val2

Added to tablehelper:
table.reduce(t, fn[, init]) - applies fn to the first two elements in t,
then again to the result and the next element, for all elements of t
table.any(t, fn) - true if any element in t fulfills function fn
table.all(t, fn) - true if all elements in t fulfill function fn
table.sum(t) - sums up all elements in t
table.mult(t) - multiplies all elements in t
table.isempty(t) - returns true if t is empty, false otherwise

debug renamed to logger due to an internal Lua conflict.
Added to logger:
table.print(t) - prints all elements in t in the Lua format: {el1, el2,
... , eln}
table.vprint(t) - prints all elements in t in the Lua format, but
vertically with each element on one line