expr_problem   xtlang


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/examples/core/expr_problem.xtm

Implementation

(bind-func expr_problem
  (lambda ()
    (let ((e1 (Add (Lit 1)  (Lit 2)))
          (e2 (Sub (Lit 10) e1)))
      (println (stringify e1) "=" (eval e1))
      (println (stringify e2) "=" (eval e2))
      void)))


Back to Index

Similar Entries