3 ms·
using rm-hull/infix in clojure x * (y + z) = x * z + y * z reduces to ($= x * (y + z) = x * z + y * z) Specifically its more complex only in that
by michaelmrose 8y ago
using rm-hull/infix in clojure
x * (y + z) = x * z + y * z reduces to
($= x * (y + z) = x * z + y * z)
Specifically its more complex only in that the entire expression is wrapped in ($= )
In order to give x y and z values to run it simply wrap it in a let and give them values.
(let [x 1 y 2 z 1]
($= x * (y + z) = x * z + y * z))
alternatively wrap it in a function
(defn testme [x y z]
($= x * (y + z) = x * z + y * z))