"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class Substring extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a', 'from', 'length'],
            o: ['a'],
        }, {}, system, _ids_1.ID_SUBSTRING);
    }
    f({ a, from, length }, done) {
        done({ a: a.substring(from, from + length) });
    }
}
exports.default = Substring;
//# sourceMappingURL=index.js.map