"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const assert = require("assert");
const debug_1 = require("../../../../debug");
const At_1 = require("../../../../system/f/array/At");
const system_1 = require("../../../util/system");
const at = new At_1.default(system_1.system);
at.play();
false && (0, debug_1.watchUnitAndLog)(at);
at.push('a', [0]);
at.push('i', 0);
assert.deepEqual(at.take('a[i]'), 0);
at.push('a', [0, 1]);
at.push('i', 1);
assert.deepEqual(at.take('a[i]'), 1);
at.push('a', []);
at.push('i', 0);
assert.notEqual(at.takeErr(), null);
at.push('a', []);
at.push('i', -1);
assert.notEqual(at.takeErr(), null);
//# sourceMappingURL=At.js.map