Module:Functional

local functional = {}

local function map(func, array) local new_array = {} for i,v in ipairs(array) do   new_array[i] = func(v) end return new_array end

functional.map = map

return functional