Skip to content

Commit 3bf4d7d

Browse files
committed
stash
1 parent a1508ec commit 3bf4d7d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

script/utility.lua

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,10 @@ function m.counter(init, step)
336336
end
337337

338338
--- 排序后遍历
339-
---@param t table
339+
---@generic K, V
340+
---@param t table<K, V>
341+
---@param sorter? fun(a: K, b: K): boolean
342+
---@return fun(): K, V
340343
function m.sortPairs(t, sorter)
341344
local keys = {}
342345
for k in pairs(t) do

0 commit comments

Comments
 (0)