Artifact b87ad1d4f00a6a66391bc98b33c25de8a27ae3243cb82bef964f9fa1796f2100:
- File single_doc/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_对_取全.lua — part of check-in [60c256f91b] at 2024-06-27 23:36:58 on branch trunk — 0 (user: 顽雨沉风, size: 681) [annotate] [blame] [check-ins using]
- File 残局文料/lua_lib/算机_程语_月_基类_能_传能_历_基类_表_对_取全.lua — part of check-in [89f423ff38] at 2024-02-13 07:31:23 on branch trunk — 好 (user: 顽雨沉风, size: 681) [annotate] [blame] [check-ins using]
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 --~ 对 --~ 能 --~ 入参2 --~ 入参3 function s.历值(u1_0, u1, u2, u3) local h1_0 --~ 对 h1_0 = {} for u4, u5 in pairs(u1_0) do h1_0[u4] = u1(u5, u2, u3) end return h1_0 end --~ 键 --~ 值 --~ 要找的值 function s.全等筛值(u1, u2, u3) if u2 == u3 then return u1, u2 else end end return s