Open jsulmont opened 1 year ago
Answering my own question (after reading pattern-type) ... the correct way of doing this is:
(defun interpret (expr)
(match-of ski expr
((or S K I) expr)
((E (eql I) x) (interpret x))))
(also helpful to read about trivia
...)
Hi Assuming the following following
, the following code
interprets
I
in the(E I x)
clause as a variable rather than theI
unit type. Or have I missed something (probably)?Thank you!