jslinting
This commit is contained in:
parent
14da75b164
commit
9161ebc6b7
|
@ -48,6 +48,10 @@
|
||||||
this.rest = rest;
|
this.rest = rest;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
var makePair = function (first, rest) {
|
||||||
|
return new Cons(first, rest);
|
||||||
|
};
|
||||||
|
|
||||||
Cons.prototype.reverse = function () {
|
Cons.prototype.reverse = function () {
|
||||||
var lst = this;
|
var lst = this;
|
||||||
var ret = EMPTY;
|
var ret = EMPTY;
|
||||||
|
@ -58,9 +62,6 @@
|
||||||
return ret;
|
return ret;
|
||||||
};
|
};
|
||||||
|
|
||||||
var makePair = function (first, rest) {
|
|
||||||
return new Cons(first, rest);
|
|
||||||
};
|
|
||||||
|
|
||||||
// FIXME: can we reduce the recursion on this?
|
// FIXME: can we reduce the recursion on this?
|
||||||
Cons.prototype.equals = function (other, aUnionFind) {
|
Cons.prototype.equals = function (other, aUnionFind) {
|
||||||
|
@ -195,7 +196,6 @@
|
||||||
if (hare === EMPTY) { return true; }
|
if (hare === EMPTY) { return true; }
|
||||||
if (tortoise === hare) { return false; }
|
if (tortoise === hare) { return false; }
|
||||||
}
|
}
|
||||||
return true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user