"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.partition = void 0;
const not_js_1 = require("../util/not.js");
const filter_js_1 = require("./filter.js");
function partition(predicate, thisArg) {
    return (source) => [(0, filter_js_1.filter)(predicate, thisArg)(source), (0, filter_js_1.filter)((0, not_js_1.not)(predicate, thisArg))(source)];
}
exports.partition = partition;