local function g(g,T)for X=1,#g,1 do if T(g[X],X)then return X end end return nil end return g
--[[
	Returns the index of the first value for which predicate(value, index) is truthy, or nil if not found.
]]

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
