Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 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))))
|
||||
|
|
@ -1,5 +0,0 @@
|
|||
(doseq
|
||||
[n (range 1 11)]
|
||||
(do
|
||||
(print n)
|
||||
(if (= (rem n 5) 0) (print "\n") (print ", "))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue