Created
October 31, 2012 19:50
-
-
Save ejackson/3989381 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 v (into [] (repeatedly 1e5 #(rand 100)))) | |
(defn rnd [x] | |
(Math/round x)) | |
(defn prnd ^long [^double x] | |
(Math/round x)) | |
(time (r/fold + (r/map rnd v))) | |
(time (r/fold + (r/map prnd v))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment