I'm trying to solve Project Euler using Clojure as an exercise to learn the language. My aim is to favour readability over performance, but still execute each problem inside a minute.
(defn is-multiple [number factor]
(zero? (mod number factor)))
(defn is-multiple-3-or-5 [number]
(or (is-multiple number 3)
(is-multiple number 5)))
(defn solve []
(reduce + (filter is-multiple-3-or-5 (range 1 1000))))
Org-mode PDF export failure
-
Having replaced my laptop due to a tea related accident, I am finding a few
things that I need to reconfigure. Org exports are one of them. On my new
fedor...
14 years ago
No comments:
Post a Comment