"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.inPlaceShrinkArray = inPlaceShrinkArray;
function inPlaceShrinkArray(set, a) {
    let front = 0;
    for (let rear = 0; rear < a.length; rear++) {
        if (set.has(a[rear])) {
            a[front++] = a[rear];
        }
    }
    a.length = front;
}
//# sourceMappingURL=index.js.map