There was an error while loading. Please reload this page.
Append values from sets.
Alternatives: concat, concat$.
function concat$(x, ...ys) // x: a set (updated) // ys: other sets
const set = require('extra-set'); var x = new Set([1, 2]); var y = new Set([3, 4]); set.concat$(x, y); // → Set(4) { 1, 2, 3, 4 } x; // → Set(4) { 1, 2, 3, 4 } var x = new Set([1, 2]); var y = new Set([3, 4]); var z = new Set([40, 50]); set.concat$(x, y, z); // → Set(6) { 1, 2, 3, 4, 40, 50 }