testing the double loop

This commit is contained in:
Paul R. Tagliamonte 2013-03-17 17:50:18 -04:00
parent d1ac469a3b
commit 5321703287

View File

@ -23,7 +23,12 @@
(def count 0)
(for [x [1 2 3 4 5]]
(def count (+ count x)))
(assert (= count 15)))
(assert (= count 15))
(def count 0)
(for [x [1 2 3 4 5]
y [1 2 3 4 5]]
(def count (+ count x y)))
(assert (= count 140)))
(defn test-in []