local f=script.Parent local u=f.Parent local T=require(u.t)local J=T.tuple(T.table,T.callback)local function i(f,u)assert(J(f,u))local T={}local i=1 for f,J in ipairs(f)do local W=u(J,f)if W~=nil then T[i]=W i+=1 end end return T end return i
local List = script.Parent

local Llama = List.Parent
local t = require(Llama.t)

local validate = t.tuple(t.table, t.callback)

local function map(list, mapper)
	assert(validate(list, mapper))

	local new = {}
	local index = 1

	for i, v in ipairs(list) do
		local value = mapper(v, i)

		if value ~= nil then
			new[index] = value
			index += 1
		end
	end

	return new
end

return map