Created
August 3, 2016 21:07
-
-
Save rattboi/1dc8debbc8610dc98b4efddf28409f03 to your computer and use it in GitHub Desktop.
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 list-amx-apps-in-env [amx env partialName] | |
(let [apps (.getApplicationsInEnv amx env) | |
appNames (map #(.getName %) apps) | |
filterAppNames (partial filter #(re-find (re-pattern partialName) %))] | |
(dorun (map #(println %) (filterAppNames appNames))))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment