Last active
December 30, 2015 20:29
-
-
Save pbostrom/7881164 to your computer and use it in GitHub Desktop.
4Clojure problem 29: http://www.4clojure.com/problem/29
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
(defn test29 | |
"Write a function which takes a string and returns a new string | |
containing only the capital letters." | |
[f] | |
[(= (f "HeLlO, WoRlD!") "HLOWRD") | |
(empty? (f "nothing")) | |
(= (f "$#A(*&987Zf") "AZ")]) | |
(test29 identity) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment