Add identity function
This commit is contained in:
parent
5a1ca3c73e
commit
5b3aad7081
1 changed files with 8 additions and 0 deletions
|
|
@ -51,6 +51,14 @@ function f.tru()
|
|||
return true
|
||||
end
|
||||
|
||||
--- Returns the arguments.
|
||||
---@generic T
|
||||
---@param ... T
|
||||
---@return T
|
||||
function f.id(...)
|
||||
return ...
|
||||
end
|
||||
|
||||
---@generic T
|
||||
---@param v T
|
||||
---@return fun(): T
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue