Skip to content

Commit fda947f

Browse files
committed
fun.iterator:unwrap()
1 parent 329583b commit fda947f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Library/fun.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,11 @@ local i = {}
1919
---@return fun.iterator, P, S
2020
function fun.wrap(gen, param, state) end
2121

22+
---Unwraps iterator to gen, param, state
23+
---@generic P,S
24+
---@return any gen, P param, S state
25+
function i:unwrap() end
26+
2227
---@generic P,S
2328
---@alias G<T> fun(param:T,state):_,any
2429

0 commit comments

Comments
 (0)