diff options
Diffstat (limited to 'dot_config/nvim/lua/toast/table.lua')
| -rw-r--r-- | dot_config/nvim/lua/toast/table.lua | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/dot_config/nvim/lua/toast/table.lua b/dot_config/nvim/lua/toast/table.lua new file mode 100644 index 0000000..b2633a2 --- /dev/null +++ b/dot_config/nvim/lua/toast/table.lua @@ -0,0 +1,16 @@ +-- [nfnl] Compiled from fnl/toast/table.fnl by https://github.com/Olical/nfnl, do not edit. +local function from_pairs(t, _3fmut) + local out = (_3fmut or {}) + for _, _1_ in ipairs(t) do + local _each_2_ = _1_ + local k = _each_2_[1] + local v = _each_2_[2] + out[k] = v + end + return out +end +local function insert(t, ...) + table.insert(t, ...) + return t +end +return {["from-pairs"] = from_pairs, insert = insert} |
