Created
October 25, 2014 00:29
-
-
Save renanreismartins/89d5351a3a9c1c902cc4 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
(def rec | |
(fn [f numbers acc] | |
(if (empty? numbers) | |
acc | |
(recur f (rest numbers) (f acc (first numbers)))))) | |
(prn (rec * [4 2 3] 1 )) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment