local function u(u,t)for P=1,#u,1 do if t(u[P],P)then return P end end return nil end return u


local function findWhere(list, predicate)
	for i = 1, #list do
		if predicate(list[i], i) then
			return i
		end
	end
	return nil
end

return findWhere
