1
2
3
4
5
6
7
8
9
10
11
12
|
local d_2 = {}
--~ 传参_参数数量
function d_2.二个参数(u1, u2, u3, u4)
return u1(u2(u3), u2(u4))
end
function d_2.三个参数(u1, u2, u3, u4, o5)
return u1(u2(u3), u2(u4), u2(o5))
end
function d_2.四个参数(u1, u2, u3, u4, o5, o6)
return u1(u2(u3), u2(u4), u2(o5), u2(o6))
end
return d_2
|
|
|
|
|
|
1
2
3
4
5
6
7
8
9
10
11
12
|
local d_2 = {}
--~ 传参_参数数量
function d_2.二个参数(u1, u2, u3, u4)
return u1(u2(u3), u2(u4))
end
function d_2.三个参数(u1, u2, u3, u4, u5)
return u1(u2(u3), u2(u4), u2(u5))
end
function d_2.四个参数(u1, u2, u3, u4, u5, u6)
return u1(u2(u3), u2(u4), u2(u5), u2(u6))
end
return d_2
|