Differences From
Artifact [2b64c7033a]:
17 17 end
18 18 return pkg
19 19 end
20 20 ss = namespace 'sirsem'
21 21 ss.namespace = namespace
22 22 end
23 23
24 +-- the C shim provides extra functionality that cannot
25 +-- be implemented in pure Lua. this functionality is
26 +-- accessed through the _G.native namespace. native
27 +-- functions should not be called directly; rather,
28 +-- they should be called from sirsem.lua wrappers that
29 +-- can provide alternative implementations or error
30 +-- messages when cortav is build in plain lua mode
24 31 local native = _G.native
25 32
26 33 function ss.map(fn, lst)
27 34 local new = {}
28 35 for k,v in pairs(lst) do
29 36 table.insert(new, fn(v,k))
30 37 end