@eagleoutice/flowr
Version:
Static Dataflow Analyzer and Program Slicer for the R Programming Language
17 lines • 405 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.setEquals = setEquals;
exports.setMinus = setMinus;
/**
* Given both sets, this checks if they contain the same elements.
*/
function setEquals(a, b) {
return a.symmetricDifference(b).size === 0;
}
/**
* Returns `A – B`
*/
function setMinus(a, b) {
return a.difference(b);
}
//# sourceMappingURL=set.js.map