local j=script.Parent local g=j.Parent local B=require(g.t)local N=B.tuple(B.table,B.callback)local function f(j,g)assert(N(j,g))local B={}local f=1 for j,N in ipairs(j)do if g(N,j)then B[f]=N f+=1 end end return B end return f
local List = script.Parent

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

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

local function filter(list, filterer)
	assert(validate(list, filterer))

	local new = {}
	local index = 1

	for i, v in ipairs(list) do
		if filterer(v, i) then
			new[index] = v
			index += 1
		end
	end

	return new
end

return filter