-
Notifications
You must be signed in to change notification settings - Fork 1
concat
Subhajit Sahu edited this page Dec 2, 2022
·
16 revisions
Append values from sets.
function concat(...xs)
// xs: 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 }
var z = new Set([40, 50]);
set.concat(x, y, z);
// → Set(6) { 1, 2, 3, 4, 40, 50 }