Artifact a22520ace845782f110c60e57a95a76d61cf1125bf5e539f482a7e9285513d01:
- File 残局文料/lua_lib/算机_程语_月_基类_表_对.lua — part of check-in [0a84ce44ba] at 2024-02-13 05:12:28 on branch trunk — 好 (user: 顽雨沉风, size: 636) [annotate] [blame] [check-ins using]
local 字集库 = require("u8_to_a") local 返参库 = require(字集库.u8_to_a("算机_程语_月_基类_能_返参")) local 历对库 = require(字集库.u8_to_a("算机_程语_月_基类_能_传能_历_基类_表_对_取全")) local s = {} -- 连对 --~ 对 --~ 对 function s.连两对(u1_0, u2_0) local h1_0 --~ 合对 h1_0 = 历对库.历对(u1_0, 返参库.二参) for u1, u2 in pairs(u2_0) do h1_0[u1] = u2 end return h1_0 end -- 对长 --~ 对 function s.对长(u1_0) local k1 --~ 对长 k1 = 0 for _ in pairs(u1_0) do k1 = k1 + 1 end return k1 end return s