"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const f_1 = require("../../../f/arithmetic/Subtract/f");
const f_2 = require("../../../f/array/Length/f");
const f_3 = require("../SplitAt/f");
function dropLast({ ab, n }) {
    const { length: _length } = (0, f_2.default)({ a: ab });
    const { 'a - b': i } = (0, f_1.default)({ a: _length, b: n });
    const { first } = (0, f_3.default)({ a: ab, i });
    return {
        a: first,
    };
}
exports.default = dropLast;
//# sourceMappingURL=f.js.map