Skip to content

Instantly share code, notes, and snippets.

@pbostrom
Last active December 30, 2015 20:29
Show Gist options
  • Save pbostrom/7881164 to your computer and use it in GitHub Desktop.
Save pbostrom/7881164 to your computer and use it in GitHub Desktop.
4Clojure problem 29: http://www.4clojure.com/problem/29
(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