Skip to content

Instantly share code, notes, and snippets.

@rattboi
Created August 3, 2016 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rattboi/1dc8debbc8610dc98b4efddf28409f03 to your computer and use it in GitHub Desktop.
Save rattboi/1dc8debbc8610dc98b4efddf28409f03 to your computer and use it in GitHub Desktop.
(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