This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; toff63's solution to Duplicate a Sequence | |
;; https://4clojure.com/problem/32 | |
(fn [c] (mapcat #(vector % %) c)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; toff63's solution to Get the Caps | |
;; https://4clojure.com/problem/29 | |
(fn [s] (reduce str (re-seq #"[A-Z]" s))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; toff63's solution to Implement range | |
;; https://4clojure.com/problem/34 | |
(fn [from to] (take (- to from) (iterate inc from))) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; toff63's solution to Palindrome Detector | |
;; https://4clojure.com/problem/27 | |
(fn [c] (= (seq c) (reverse c))) |