Slide 85
Slide 85 text
function f<...T,...U>(ts:...T): [...T,...U] {!
let us: ...U = makeTuple('hello', 'world');!
return [...ts, ...us];!
}!
const ret = f('html', 5, 'conference');!
// ret = ['html', 5, 'conference', 'hello',
'world'];!
// ...T = [string, number, string]!
// ...U = [string, string];!
// [...T, ...U] = [string, number, string,
string, string]!