Browse Source

Add substitution in expression

Samuel W. Flint 5 years ago
parent
commit
d40dba1a0f
1 changed files with 5 additions and 0 deletions
  1. 5 0
      larcs.org

+ 5 - 0
larcs.org

@@ -186,6 +186,11 @@ Of the various types, there are three atomic types, ~<number>~, ~<variable>~ and
   (defmethod atomicp ((expression <atomic>))
     (declare (ignore expression))
     t)
+
+  (defmethod subsitute-expression (expression with (in <atomic>))
+    (if (eqal expression in)
+        with
+        in))
 #+END_SRC
 
 *** DONE Numbers