Update all new Tasks
This commit is contained in:
parent
00a190b0a6
commit
91df62d461
5697 changed files with 93386 additions and 804 deletions
14
Task/Nth/Clojure/nth-1.clj
Normal file
14
Task/Nth/Clojure/nth-1.clj
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
(defn n-th [n]
|
||||
(str n
|
||||
(let [rem (mod n 100)]
|
||||
(if (and (>= rem 11) (<= rem 13))
|
||||
"th"
|
||||
(condp = (mod n 10)
|
||||
1 "st"
|
||||
2 "nd"
|
||||
3 "rd"
|
||||
"th")))))
|
||||
|
||||
(apply str (interpose " " (map n-th (range 0 26))))
|
||||
(apply str (interpose " " (map n-th (range 250 266))))
|
||||
(apply str (interpose " " (map n-th (range 1000 1026))))
|
||||
1
Task/Nth/Clojure/nth-2.clj
Normal file
1
Task/Nth/Clojure/nth-2.clj
Normal file
|
|
@ -0,0 +1 @@
|
|||
(apply str (interpose " " (map #(clojure.pprint/cl-format nil "~:R" %) (range 0 26))))
|
||||
Loading…
Add table
Add a link
Reference in a new issue