"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = splitAt;
const f_1 = require("../../../f/arithmetic/Subtract/f");
const f_2 = require("../../../f/array/Length/f");
const f_3 = require("../../../f/array/Remove/f");
const f_4 = require("../../../f/control/Identity/f");
function splitAt({ a, i }) {
    const { length: _length } = (0, f_2.default)({ a });
    const { 'a - b': count } = (0, f_1.default)({ a: _length, b: i });
    const { a: start } = (0, f_4.default)({ a: i });
    const { removed, a: _a } = (0, f_3.default)({ a, start, count });
    return {
        first: _a,
        second: removed,
    };
}
//# sourceMappingURL=f.js.map