(this: Iterator<T>)
| 11 | } |
| 12 | |
| 13 | function 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 | |
| 19 | function iteratorStringStep(this: string, index: number): LuaMultiReturn<[number, string] | []> { |
| 20 | index += 1; |