Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
(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
You can’t perform that action at this time.