1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
local s = {}
-- 全与局
--~ 对
--~ 能
--~ 入参3
function s.历对(u1_0, u1, u2)
local k1, k2
local h1_0
--~ 对
h1_0 = {}
for u3, u4 in pairs(u1_0) do
--~ 键
--~ 值
k1, k2 = u1(u3, u4, u2)
if k1 then
h1_0[k1] = k2
else
end
end
return h1_0
end
--~ 对
--~ 能
|
|
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
local s = {}
-- 全与局
--~ 对
--~ 能
--~ 入参3
function s.历对(u1_0, u1, u2)
local h1, h2
local h1_0
--~ 对
h1_0 = {}
for u3, u4 in pairs(u1_0) do
--~ 键
--~ 值
h1, h2 = u1(u3, u4, u2)
if h1 then
h1_0[h1] = h2
else
end
end
return h1_0
end
--~ 对
--~ 能
|