Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
5
Task/Loops-Continue/Clojure/loops-continue-1.clj
Normal file
5
Task/Loops-Continue/Clojure/loops-continue-1.clj
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
(doseq [n (range 1 11)]
|
||||
(print n)
|
||||
(if (zero? (rem n 5))
|
||||
(println)
|
||||
(print ", ")))
|
||||
7
Task/Loops-Continue/Clojure/loops-continue-2.clj
Normal file
7
Task/Loops-Continue/Clojure/loops-continue-2.clj
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
(loop [xs (range 1 11)]
|
||||
(when-let [x (first xs)]
|
||||
(print x)
|
||||
(if (zero? (rem x 5))
|
||||
(println)
|
||||
(print ", "))
|
||||
(recur (rest xs))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue