kopia lustrzana https://github.com/backface/turtlestitch
another tweak to item of
rodzic
4d5a738ed2
commit
0f5243aa51
|
|
@ -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) {
|
||||
|
|
|
|||
Ładowanie…
Reference in New Issue