private static LuaArguments math_min(LuaArguments args) { var min = args[0]; min = args.Aggregate(min, (current, o) => Math.Min(current, o)); return Lua.Return(min); }
private static LuaArguments math_max(LuaArguments args) { var max = args[0]; max = args.Aggregate(max, (current, o) => Math.Max(current, o)); return Lua.Return(max); }