- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
- 11
- 12
- 13
- 14
- 15
function main() {
let arr = [1, 2, 3];
const it =
(
function* iter() {
for (const v of arr)
yield ((x: typeof v) => x + 1)(v);
}
)();
for (const v of it) print(v);
print("done.");
}
ASD__77 # 0
guest # 0
ASD__77 # 0 ⇈