-
Notifications
You must be signed in to change notification settings - Fork 1
concat$
Subhajit Sahu edited this page Feb 3, 2021
·
16 revisions
Appends values from sets. 🏃 📼 📦 🌔 📒
set.concat$(x, ...ys);
// x: a set (updated)
// ys: other sets
// --> x
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 z = new Set([40, 50]);
set.concat$(x, y, z);
// Set(6) { 1, 2, 3, 4, 40, 50 }