-
Notifications
You must be signed in to change notification settings - Fork 1
tail
Subhajit Sahu edited this page Dec 2, 2022
·
15 revisions
Get a set without its first value (default order).
function tail(x)
// x: a set
const set = require('extra-set');
var x = new Set([1, 2, 3]);
set.tail(x);
// → Set(2) { 2, 3 }
var x = new Set([1]);
set.tail(x);
// → Set(0) {}