aboutsummaryrefslogtreecommitdiff
path: root/src/interp/sys-utility.boot
diff options
context:
space:
mode:
authordos-reis <gdr@axiomatics.org>2011-04-22 15:51:57 +0000
committerdos-reis <gdr@axiomatics.org>2011-04-22 15:51:57 +0000
commit32efd3b0691918cf1d662b095c653d5a0a17ff7b (patch)
treeb340c1d23d752542fe88fd80ae6d559198c0b263 /src/interp/sys-utility.boot
parentb0046ba3929c513a399fd1ebb84dee1712c55a02 (diff)
downloadopen-axiom-32efd3b0691918cf1d662b095c653d5a0a17ff7b.tar.gz
more cleanup
Diffstat (limited to 'src/interp/sys-utility.boot')
-rw-r--r--src/interp/sys-utility.boot21
1 files changed, 0 insertions, 21 deletions
diff --git a/src/interp/sys-utility.boot b/src/interp/sys-utility.boot
index 6895926e..6d9bf52c 100644
--- a/src/interp/sys-utility.boot
+++ b/src/interp/sys-utility.boot
@@ -392,24 +392,3 @@ symbolLassoc(s,l) ==
p := symbolAssoc(s,l) => rest p
nil
-
---% substitute
-
-substitute(new,old,tree) ==
- sameObject?(old,tree) => new
- cons? tree =>
- h := substitute(new,old,first tree)
- t := substitute(new,old,rest tree)
- sameObject?(h,first tree) and sameObject?(t,rest tree) => tree
- [h,:t]
- tree
-
-substitute!(new,old,tree) ==
- sameObject?(old,tree) => new
- cons? tree =>
- h := substitute!(new,old,first tree)
- t := substitute!(new,old,rest tree)
- tree.first := h
- tree.rest := t
- tree
-