MCPcopy Index your code
hub / github.com/TypeScriptToLua/TypeScriptToLua / iteratorIteratorStep

Function iteratorIteratorStep

src/lualib/Iterator.ts:13–17  ·  view source on GitHub ↗
(this: Iterator<T>)

Source from the content-addressed store, hash-verified

11}
12
13function iteratorIteratorStep<T>(this: Iterator<T>): LuaMultiReturn<[true, T] | []> {
14 const result = this.next();
15 if (result.done) return $multi();
16 return $multi(true, result.value);
17}
18
19function iteratorStringStep(this: string, index: number): LuaMultiReturn<[number, string] | []> {
20 index += 1;

Callers

nothing calls this directly

Calls 1

nextMethod · 0.45

Tested by

no test coverage detected