--[[ Returns the index of the given value or nil if not found. ]] local function find(list, value) for i = 1, #list do if list[i] == value then return i end end return nil end return find