code cleanup
authorJim Pryor <profjim@jimpryor.net>
Sun, 17 Oct 2010 18:44:12 +0000 (14:44 -0400)
committerJim Pryor <profjim@jimpryor.net>
Sun, 17 Oct 2010 18:44:12 +0000 (14:44 -0400)
Signed-off-by: Jim Pryor <profjim@jimpryor.net>
code/lambda.js

index 89bd21b..d4e3a5e 100644 (file)
@@ -293,16 +293,16 @@ function Lambda_lam(variable, body) {
         return new Db_lam(this.body.debruijn(new_seq));
     };
     this.to_string = function (as_atom) {
-        var base = "\\" + this.to_string_funct();
+        var base = "\\" + this.to_dotted();
         if (as_atom) {
             return "(" + base + ")";
         } else {
             return base;
         }
     };
-    this.to_string_funct = function () {
-        if (this.body.to_string_funct) {
-            return this.bound.to_string() + " " + this.body.to_string_funct();
+    this.to_dotted = function () {
+        if (this.body.to_dotted) {
+            return this.bound.to_string() + " " + this.body.to_dotted();
         } else {
             return this.bound.to_string() + ". " + this.body.to_string();
         }