3 ms·
(defn japanjure [& e] (reduce #(if (fn? %2) (let [[l r & m]%] (cons (%2 r l) m)) (cons %2 %))[]e))
by fogus 16y ago
(defn japanjure [& e]
(reduce #(if (fn? %2)
(let [[l r & m]%]
(cons (%2 r l) m))
(cons %2 %))[]e))
(japanjure
4 5 +
3 *
print)
- sahillavingia 16y agoSomeone explain?
- T-R 16y agoI'm not that familiar with lisp, but it looks like he wrote a macro that allows functions to be called in postfix