Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save flengyel/1436555 to your computer and use it in GitHub Desktop.
Save flengyel/1436555 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))))))
@flengyel
Copy link
Author

flengyel commented Dec 6, 2011

The infix calculator is a throwaway 4clojure problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment