lua补丁
向 Lua 添加各种补丁以启用更酷的功能(a la Python)
local Patch = require ' lua_patch '
Patch. addPatch ( ' table-pop ' )
Patch. addPatch ( ' string-format ' )
-- or
Patch. addAllPatches ()
Patch. removePatch ( ' table-pop ' )
Patch. removePatch ( ' string-format ' )
-- or
Patch. removeAllPatches ()
Table.pop
同时从表中检索和删除项目
local Patch = require ' lua_patch '
Patch. addPatch ( ' table-pop ' )
local process_
评论0
最新资源