some type stuff
This commit is contained in:
parent
4c5006d1e7
commit
b7e027cdc6
@ -4,9 +4,11 @@ local Vector3 = require "types.vector3"
|
||||
local List = require "types.list"
|
||||
|
||||
local Feed = require "classes.feed"
|
||||
---@type List
|
||||
local feed = List()
|
||||
|
||||
local Duck = require "classes.duck"
|
||||
---@type List
|
||||
local ducks = List()
|
||||
|
||||
local function create_feed(position, direction)
|
||||
|
@ -154,7 +154,7 @@ function List:shuffled()
|
||||
end
|
||||
|
||||
---Returns a sorted copy of this list.
|
||||
---@param f? fun(a: any, b: any)
|
||||
---@param f? fun(a: any, b: any): boolean
|
||||
---@return List
|
||||
function List:sorted(f)
|
||||
local list = self:copy()
|
||||
|
Loading…
Reference in New Issue
Block a user