| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | 12 12 23 | /**
* Yields the values from all given iterables.
* @params {...*} args - The iterables to concat.
* @returns {*} - The values from the iterables.
*/
function *concat(...args) {
for (let xs of args) {
for (let x of xs) {
yield x;
}
}
}
export default concat;
|