diff options
Diffstat (limited to 'src/interp/sys-utility.boot')
-rw-r--r-- | src/interp/sys-utility.boot | 21 |
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 - |