another tweak to item of

pull/95/head
jmoenig 2020-05-13 15:49:57 +02:00
rodzic 4d5a738ed2
commit 0f5243aa51
1 zmienionych plików z 11 dodań i 1 usunięć

Wyświetl plik

@ -1814,7 +1814,6 @@ Process.prototype.reportListItem = function (index, list) {
}
if (this.enableHyperOps) {
if (this.isMatrix(index)) {
len = index.length();
if (index.length() === 1) {
// apply column indices to every row in the table
return new List(
@ -1846,6 +1845,17 @@ Process.prototype.reportListItem = function (index, list) {
return list.at(index);
};
Process.prototype.dimensionsOf = function(aList) {
var dim = 0,
cur = aList;
while (cur instanceof List) {
dim += 1;
cur = cur.at(1);
}
return dim;
};
// Process - other basic list accessors
Process.prototype.reportListLength = function (list) {