function Functional.FilterMap(V,A)local T={}for F=1,#V,1 do local n=V[F]local j=A(n,F)if j~=nil then table.insert(T,j)end end return T end

function Functional.FilterMap(list, callback)
	local new = {}

	for key = 1, #list do
		local value = list[key]
		local result = callback(value, key)

		if result ~= nil then
			table.insert(new, result)
		end
	end

	return new
end
