function Table.getIndex(T,z)assert(z~=nil,"\078\101\101\100\108\101 \099\097\110\110\111\116 \098\101 \110\105\108")for T,C in pairs(T)do if z==C then return T end end return nil end

function Table.getIndex(haystack, needle)
	assert(needle ~= nil, "Needle cannot be nil")

	for index, item in pairs(haystack) do
		if needle == item then
			return index
		end
	end
	return nil
end
