sorcery  Diff

Differences From Artifact [0fb14e1ea3]:

To Artifact [c7882ede1c]:


200
201
202
203
204
205
206






207
208
209
210
211
212
213
end

fn.cond = function(exp, c)
	for i, v in ipairs(c) do
		if c[1](exp) then return c[2](exp) end
	end
end







fn.select = function(tbl, prop, ...)
	local keycache
	local check if type(prop) == 'function' then
		check = prop
		keycache = ...
	else







>
>
>
>
>
>







200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
end

fn.cond = function(exp, c)
	for i, v in ipairs(c) do
		if c[1](exp) then return c[2](exp) end
	end
end

fn.strmatch = function(tbl, str)
	if tbl == str then return true end
	if type(tbl) == 'string' then return false end
	return fn.has(tbl, str)
end

fn.select = function(tbl, prop, ...)
	local keycache
	local check if type(prop) == 'function' then
		check = prop
		keycache = ...
	else