Created
December 6, 2011 03:22
-
-
Save anonymous/1436552 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; 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