Skip to content

Instantly share code, notes, and snippets.

Created December 6, 2011 03:22
Show Gist options
  • Save anonymous/1436552 to your computer and use it in GitHub Desktop.
Save anonymous/1436552 to your computer and use it in GitHub Desktop.
;; flengyel's solution to Infix Calculator
;; https://4clojure.com/problem/135
(fn [a & b]
(loop [acc a l b]
(if (empty? l)
acc
(recur ((first l) acc (first (rest l)))
(rest (rest l))))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment