"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const assert_1 = __importDefault(require("assert"));
const debug_1 = require("../../../../debug");
const At_1 = __importDefault(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_1.default.deepEqual(at.take('a[i]'), 0);
at.push('a', [0, 1]);
at.push('i', 1);
assert_1.default.deepEqual(at.take('a[i]'), 1);
at.push('a', []);
at.push('i', 0);
assert_1.default.notEqual(at.takeErr(), null);
at.push('a', []);
at.push('i', -1);
assert_1.default.notEqual(at.takeErr(), null);
//# sourceMappingURL=At.js.map