blob: 1bb18e173e8b41052546dbcad61fe078bb35d0ad (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
local K = {}
--- Build actions table from simple mapping { [key] = fn, ... }
function K.actions(map)
local t = {}
for k, fn in pairs(map) do
t[k] = fn
end
return t
end
return K
|