diff options
author | CppCXY <812125110@qq.com> | 2024-02-22 20:29:13 +0800 |
---|---|---|
committer | CppCXY <812125110@qq.com> | 2024-02-22 20:29:13 +0800 |
commit | 9b6df71d97a70ee7179949ef9f15368cbf29dcbd (patch) | |
tree | bf7a7e62ed7c164a12bdce437c17262a5235bcec /meta/3rd/OpenResty/library/table/clone.lua | |
parent | 483fe246b6ae8c25d433aa15e43f04f0e71a74d5 (diff) | |
parent | 3e6fd3ce1f2f0528336ded939d776a29bbfaf2eb (diff) | |
download | lua-language-server-9b6df71d97a70ee7179949ef9f15368cbf29dcbd.zip |
Merge branch 'master' of github.com:CppCXY/lua-language-server
Diffstat (limited to 'meta/3rd/OpenResty/library/table/clone.lua')
m--------- | meta/3rd/OpenResty | 0 | ||||
-rw-r--r-- | meta/3rd/OpenResty/library/table/clone.lua | 25 |
2 files changed, 0 insertions, 25 deletions
diff --git a/meta/3rd/OpenResty b/meta/3rd/OpenResty new file mode 160000 +Subproject 3bec36f0f645bb38b3c8208990d5c36feb66ce3 diff --git a/meta/3rd/OpenResty/library/table/clone.lua b/meta/3rd/OpenResty/library/table/clone.lua deleted file mode 100644 index ff2ce870..00000000 --- a/meta/3rd/OpenResty/library/table/clone.lua +++ /dev/null @@ -1,25 +0,0 @@ ----@meta - ---- Returns a shallow copy of the given Lua table. ---- ---- This API can be JIT compiled. ---- ---- Usage: ---- ---- ```lua ---- local clone = require "table.clone" ---- ---- local x = {x=12, y={5, 6, 7}} ---- local y = clone(x) ---- ``` ---- ---- **Note:** We observe 7% over-all speedup in the edgelang-fan compiler's ---- compiling speed whose Lua is generated by the fanlang compiler. ---- ---- **Note bis:** Deep cloning is planned to be supported by adding `true` as a second argument. ---- ----@param t table ----@return table -local function clone(t) end - -return clone |