"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.default = dropLast;
const f_1 = __importDefault(require("../../../f/arithmetic/Subtract/f"));
const f_2 = __importDefault(require("../../../f/array/Length/f"));
const f_3 = __importDefault(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,
    };
}
//# sourceMappingURL=f.js.map