We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6fcecb commit cc3cd66Copy full SHA for cc3cd66
1 file changed
types/List.lua
@@ -51,7 +51,8 @@ function List:any(pred) end
51
---local l = List({ "a" }):append("b")
52
----- result: { "a", "b" }
53
---```
54
----@param self mods.List|any[]
+---@generic T:mods.List|any[]
55
+---@param self T
56
---@return T self
57
function List:append(v) end
58
@@ -314,7 +315,8 @@ function List:last() end
314
315
---local d = List({ "a", "b", "c" }):difference({ "b" })
316
----- result: { "a", "c" }
317
318
319
320
---@return T ls
321
---@nodiscard
322
function List:difference(ls) end
0 commit comments