2013-07-01 03:13:12 +00:00
|
|
|
local hi
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for _, x in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4
|
|
|
|
}) do
|
|
|
|
_accum_0[_len_0] = x * 2
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
|
|
|
hi = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2011-05-28 04:27:59 +00:00
|
|
|
local items = {
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
}
|
2013-07-01 03:13:12 +00:00
|
|
|
local mm
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for self.x in ipairs(items) do
|
|
|
|
_accum_0[_len_0] = self.x
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
|
|
|
mm = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2011-05-29 21:40:40 +00:00
|
|
|
for z in ipairs(items) do
|
|
|
|
if z > 4 then
|
|
|
|
local _ = z
|
|
|
|
end
|
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
local rad
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for a in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
6
|
|
|
|
}) do
|
|
|
|
if good_number(a) then
|
|
|
|
_accum_0[_len_0] = {
|
|
|
|
a
|
|
|
|
}
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
2011-05-28 04:27:59 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
rad = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2011-05-29 21:40:40 +00:00
|
|
|
for z in items do
|
|
|
|
for j in list do
|
|
|
|
if z > 4 then
|
2011-06-13 05:38:42 +00:00
|
|
|
local _ = z
|
2011-05-28 06:21:29 +00:00
|
|
|
end
|
|
|
|
end
|
2011-05-29 21:40:40 +00:00
|
|
|
end
|
2011-05-28 06:21:29 +00:00
|
|
|
require("util")
|
2011-06-03 03:55:33 +00:00
|
|
|
local dump
|
2011-07-14 07:02:07 +00:00
|
|
|
dump = function(x)
|
|
|
|
return print(util.dump(x))
|
|
|
|
end
|
2011-06-03 03:55:33 +00:00
|
|
|
local range
|
|
|
|
range = function(count)
|
2011-05-28 06:21:29 +00:00
|
|
|
local i = 0
|
2011-06-13 05:38:42 +00:00
|
|
|
return coroutine.wrap(function()
|
2011-05-28 23:45:59 +00:00
|
|
|
while i < count do
|
|
|
|
coroutine.yield(i)
|
|
|
|
i = i + 1
|
|
|
|
end
|
2011-06-13 05:38:42 +00:00
|
|
|
end)
|
2011-05-28 06:21:29 +00:00
|
|
|
end
|
|
|
|
dump((function()
|
2011-07-14 07:02:07 +00:00
|
|
|
local _accum_0 = { }
|
2013-07-01 03:13:12 +00:00
|
|
|
local _len_0 = 1
|
2011-05-28 06:21:29 +00:00
|
|
|
for x in range(10) do
|
2013-07-01 03:13:12 +00:00
|
|
|
_accum_0[_len_0] = x
|
|
|
|
_len_0 = _len_0 + 1
|
2011-05-28 06:21:29 +00:00
|
|
|
end
|
2011-07-14 07:02:07 +00:00
|
|
|
return _accum_0
|
2011-05-28 06:21:29 +00:00
|
|
|
end)())
|
|
|
|
dump((function()
|
2011-07-14 07:02:07 +00:00
|
|
|
local _accum_0 = { }
|
2013-07-01 03:13:12 +00:00
|
|
|
local _len_0 = 1
|
2011-05-28 06:21:29 +00:00
|
|
|
for x in range(5) do
|
|
|
|
if x > 2 then
|
|
|
|
for y in range(5) do
|
2013-07-01 03:13:12 +00:00
|
|
|
_accum_0[_len_0] = {
|
2011-07-14 07:02:07 +00:00
|
|
|
x,
|
|
|
|
y
|
2011-08-13 18:20:10 +00:00
|
|
|
}
|
2013-07-01 03:13:12 +00:00
|
|
|
_len_0 = _len_0 + 1
|
2011-05-28 06:21:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2011-07-14 07:02:07 +00:00
|
|
|
return _accum_0
|
2011-05-28 06:21:29 +00:00
|
|
|
end)())
|
2013-07-01 03:13:12 +00:00
|
|
|
local things
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for x in range(10) do
|
|
|
|
if x > 5 then
|
|
|
|
for y in range(10) do
|
|
|
|
if y > 7 then
|
|
|
|
_accum_0[_len_0] = x + y
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
2011-05-28 06:21:29 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
things = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2011-07-14 07:02:07 +00:00
|
|
|
for x in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
}) do
|
|
|
|
for y in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
}) do
|
2011-05-29 21:40:40 +00:00
|
|
|
if x ~= 2 then
|
|
|
|
print(x, y)
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
for x in items do
|
|
|
|
print("hello", x)
|
|
|
|
end
|
|
|
|
for x in x do
|
2011-06-13 05:38:42 +00:00
|
|
|
local _ = x
|
2011-05-29 21:40:40 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
local x
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for x in x do
|
|
|
|
_accum_0[_len_0] = x
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
|
|
|
x = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2011-07-14 07:02:07 +00:00
|
|
|
for x in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
4
|
|
|
|
}) do
|
|
|
|
for y in ipairs({
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3
|
|
|
|
}) do
|
2011-05-29 21:40:40 +00:00
|
|
|
if x ~= 2 then
|
|
|
|
print(x, y)
|
|
|
|
end
|
|
|
|
end
|
2011-06-02 03:58:17 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
local double
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for _index_0 = 1, #items do
|
|
|
|
x = items[_index_0]
|
|
|
|
_accum_0[_len_0] = x * 2
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
|
|
|
double = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, #double do
|
|
|
|
x = double[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(x)
|
2011-06-02 03:58:17 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
local cut
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for _index_0 = 1, #items do
|
|
|
|
x = items[_index_0]
|
|
|
|
if x > 3 then
|
|
|
|
_accum_0[_len_0] = x
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
2011-06-02 03:58:17 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
cut = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
local hello
|
|
|
|
do
|
|
|
|
local _accum_0 = { }
|
|
|
|
local _len_0 = 1
|
|
|
|
for _index_0 = 1, #items do
|
|
|
|
x = items[_index_0]
|
|
|
|
for _index_1 = 1, #items do
|
|
|
|
local y = items[_index_1]
|
|
|
|
_accum_0[_len_0] = x + y
|
|
|
|
_len_0 = _len_0 + 1
|
|
|
|
end
|
2011-06-02 03:58:17 +00:00
|
|
|
end
|
2013-07-01 03:13:12 +00:00
|
|
|
hello = _accum_0
|
2013-06-11 02:57:01 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, #hello do
|
|
|
|
local z = hello[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(z)
|
2011-06-23 15:42:43 +00:00
|
|
|
end
|
|
|
|
x = {
|
|
|
|
1,
|
|
|
|
2,
|
|
|
|
3,
|
|
|
|
4,
|
|
|
|
5,
|
|
|
|
6,
|
|
|
|
7
|
|
|
|
}
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_0 = x
|
2011-10-10 07:24:16 +00:00
|
|
|
local _max_0 = -5
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 2, _max_0 < 0 and #_list_0 + _max_0 or _max_0, 2 do
|
|
|
|
local y = _list_0[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(y)
|
2011-06-23 15:42:43 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_1 = x
|
2011-10-10 07:24:16 +00:00
|
|
|
local _max_1 = 3
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, _max_1 < 0 and #_list_1 + _max_1 or _max_1 do
|
|
|
|
local y = _list_1[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(y)
|
2011-06-23 15:42:43 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_2 = x
|
|
|
|
for _index_0 = 2, #_list_2 do
|
|
|
|
local y = _list_2[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(y)
|
2011-06-23 15:42:43 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_3 = x
|
|
|
|
for _index_0 = 1, #_list_3, 2 do
|
|
|
|
local y = _list_3[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(y)
|
2011-06-23 15:42:43 +00:00
|
|
|
end
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_4 = x
|
|
|
|
for _index_0 = 2, #_list_4, 2 do
|
|
|
|
local y = _list_4[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(y)
|
2011-07-28 05:35:45 +00:00
|
|
|
end
|
2011-11-06 23:44:40 +00:00
|
|
|
local a, b, c = 1, 5, 2
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_5 = x
|
2011-11-06 23:44:40 +00:00
|
|
|
local _max_2 = b
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = a, _max_2 < 0 and #_list_5 + _max_2 or _max_2, c do
|
|
|
|
local y = _list_5[_index_0]
|
2011-11-06 23:44:40 +00:00
|
|
|
print(y)
|
|
|
|
end
|
2011-07-28 05:35:45 +00:00
|
|
|
local normal
|
|
|
|
normal = function(hello)
|
|
|
|
return (function()
|
|
|
|
local _accum_0 = { }
|
2013-07-01 03:13:12 +00:00
|
|
|
local _len_0 = 1
|
2011-07-28 05:35:45 +00:00
|
|
|
for x in yeah do
|
2013-07-01 03:13:12 +00:00
|
|
|
_accum_0[_len_0] = x
|
|
|
|
_len_0 = _len_0 + 1
|
2011-07-28 05:35:45 +00:00
|
|
|
end
|
|
|
|
return _accum_0
|
|
|
|
end)()
|
|
|
|
end
|
|
|
|
local test = x(1, 2, 3, 4, 5)
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, #test do
|
|
|
|
local thing = test[_index_0]
|
2011-10-10 07:24:16 +00:00
|
|
|
print(thing)
|
2011-11-19 21:03:51 +00:00
|
|
|
end
|
|
|
|
local _
|
|
|
|
_ = function()
|
2013-06-11 02:18:49 +00:00
|
|
|
local _list_6 = rows
|
|
|
|
for _index_0 = 1, #_list_6 do
|
|
|
|
local row = _list_6[_index_0]
|
2011-11-19 21:03:51 +00:00
|
|
|
a = b
|
|
|
|
end
|
2012-10-27 22:51:34 +00:00
|
|
|
end
|
|
|
|
_ = function()
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, #things do
|
|
|
|
x = things[_index_0]
|
2012-10-27 22:51:34 +00:00
|
|
|
_ = x
|
|
|
|
end
|
|
|
|
end
|
2012-10-30 16:38:47 +00:00
|
|
|
return function()
|
2012-10-27 22:51:34 +00:00
|
|
|
return (function()
|
|
|
|
local _accum_0 = { }
|
2013-07-01 03:13:12 +00:00
|
|
|
local _len_0 = 1
|
2013-06-11 02:18:49 +00:00
|
|
|
for _index_0 = 1, #things do
|
|
|
|
x = things[_index_0]
|
2013-07-01 03:13:12 +00:00
|
|
|
_accum_0[_len_0] = x
|
|
|
|
_len_0 = _len_0 + 1
|
2012-10-27 22:51:34 +00:00
|
|
|
end
|
|
|
|
return _accum_0
|
|
|
|
end)()
|
2011-05-29 21:40:40 +00:00
|
|
|
end
|