"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Functional_1 = require("../../../../Class/Functional");
const _ids_1 = require("../../../_ids");
class At extends Functional_1.Functional {
    constructor(system) {
        super({
            i: ['a', 'i'],
            o: ['a[i]'],
        }, {}, system, _ids_1.ID_AT);
    }
    f({ a, i }, done) {
        if (i >= 0 && i < a.length) {
            done({ 'a[i]': a[i] });
        }
        else {
            done(undefined, 'index out of boundary');
        }
    }
}
exports.default = At;
//# sourceMappingURL=index.js.map