Differences From Artifact [0fb14e1ea3]:
- File lib/tbl.lua — part of check-in [c71731cf58] at 2021-07-03 02:25:42 on branch trunk — many bug fixers, some minor refactoring, allow non-drinkable potions to be empowered in various ways, allow gods to be petitioned for recipes (next up: cookbooks!) (user: lexi, size: 4106) [annotate] [blame] [check-ins using]
To Artifact [c7882ede1c]:
- File lib/tbl.lua — part of check-in [641c891754] at 2021-07-07 12:57:28 on branch trunk — moretrees compat (user: lexi, size: 4253) [annotate] [blame] [check-ins using]
202 202 fn.cond = function(exp, c) 203 203 for i, v in ipairs(c) do 204 204 if c[1](exp) then return c[2](exp) end 205 205 end 206 206 end 207 + 208 +fn.strmatch = function(tbl, str) 209 + if tbl == str then return true end 210 + if type(tbl) == 'string' then return false end 211 + return fn.has(tbl, str) 212 +end 207 213 208 214 fn.select = function(tbl, prop, ...) 209 215 local keycache 210 216 local check if type(prop) == 'function' then 211 217 check = prop