Skip to content

Commit

Permalink
Add first clojure solution
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinclark committed Sep 8, 2010
1 parent 5510c37 commit c923f1f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions clojure/1.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
(defn mul-3-or-5? [x] (some zero? [(mod x 5) (mod x 3)]))


(println
(apply + (for [x (range 1000) :when (mul-3-or-5? x)] x)))

0 comments on commit c923f1f

Please sign in to comment.