mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
3 lines
112 B
JavaScript
3 lines
112 B
JavaScript
function* g() { yield 1; yield 2; return 3 }
|
|
const it = g()
|
|
return [it.next(), it.next(), it.next(), it.next()]
|