cortav  Diff

Differences From Artifact [2b64c7033a]:

To Artifact [c72ad0a8fc]:


17
18
19
20
21
22
23







24
25
26
27
28
29
30
		end
		return pkg
	end
	ss = namespace 'sirsem'
	ss.namespace = namespace
end








local native = _G.native

function ss.map(fn, lst)
	local new = {}
	for k,v in pairs(lst) do
		table.insert(new, fn(v,k))
	end







>
>
>
>
>
>
>







17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
		end
		return pkg
	end
	ss = namespace 'sirsem'
	ss.namespace = namespace
end

-- the C shim provides extra functionality that cannot
-- be implemented in pure Lua. this functionality is
-- accessed through the _G.native namespace. native
-- functions should not be called directly; rather,
-- they should be called from sirsem.lua wrappers that
-- can provide alternative implementations or error
-- messages when cortav is build in plain lua mode
local native = _G.native

function ss.map(fn, lst)
	local new = {}
	for k,v in pairs(lst) do
		table.insert(new, fn(v,k))
	end