--[[
	If the list contains the sought-after element, return its index, or nil otherwise.
]]

function Functional.Find(list, value)
	for index, element in ipairs(list) do
		if element == value then
			return index
		end
	end

	return nil
end

return Functional
