Table.indexOf=function(K,q)local H=table.find(K,q)if H then return H end return Table.keyOf(K,q)end
-- A combo of table.find and table.keyOf -- This first attempts to find the ordinal index of your value, then attempts to find the lookup key if it can't find an ordinal index.
Table.indexOf = function(tbl, value)
	local fromFind = table.find(tbl, value)
	if fromFind then
		return fromFind
	end

	return Table.keyOf(tbl, value)
end
