rm-hull / infix

A Clojure library for expressing LISP expressions as infix rather than prefix notation
https://www.destructuring-bind.org/infix/
MIT License
107 stars 12 forks source link

Doesn't fully expand all aliases properly #3

Closed rm-hull closed 8 years ago

rm-hull commented 8 years ago
(defn checkerboard [x y]
  (infix exp(sin x + cos y) - sin(exp(x + y))))

This doesn't alias the 2nd exp:

(- (Math/exp (+ (Math/sin x) (Math/cos y))) (Math/sin (exp (+ x y))))