"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Behead extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a'],
            o: ['tail', 'head'],
        }, {}, system, _ids_1.ID_BEHEAD_0);
    }
    f({ a }, done) {
        const head = a[0] || '';
        const tail = a.slice(1) || '';
        done({ tail, head });
    }
}
exports.default = Behead;
//# sourceMappingURL=index.js.map