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