Table.indexOf=function(p,A)local l=table.find(p,A)if l then return l end return Table.keyOf(p,A)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
