-
Notifications
You must be signed in to change notification settings - Fork 1
add
Subhajit Sahu edited this page Jun 13, 2020
·
14 revisions
Adds value to set. [:running:] [:vhs:] [:package:] [:moon:] [:ledger:]
Alternatives: [add], [add$].
Similar: [add], [remove].
set.add(x, v);
// x: a set
// v: value
const set = require('extra-set');
var x = new Set([2, 4, 6 ,8]);
set.add(x, 40);
// Set(5) { 2, 4, 6, 8, 40 }
set.add(x, 80);
// Set(5) { 2, 4, 6, 8, 80 }
- List-Extra.updateAt: elm
- List.set: Java [add]: https://github.com/nodef/extra-set/wiki/add [add$]: https://github.com/nodef/extra-set/wiki/add$ [remove]: https://github.com/nodef/extra-set/wiki/remove [:running:]: https://npm.runkit.com/@extra-set/add [:vhs:]: https://asciinema.org/a/339227 [:package:]: https://www.npmjs.com/package/@extra-set/add [:moon:]: https://www.npmjs.com/package/@extra-set/add.min [:ledger:]: https://unpkg.com/@extra-set/add/