6 lines
No EOL
144 B
TypeScript
6 lines
No EOL
144 B
TypeScript
//@target: ES6
|
|
function* g(): IterableIterator<(x: string) => number> {
|
|
yield * function* () {
|
|
yield x => x.length;
|
|
} ();
|
|
} |