Created
March 14, 2010 18:55
-
-
Save Licenser/332156 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 find-units | |
[game pred] | |
(let [units (vals (:units game)) | |
_ (utils/trace "find-units on" (count units)) | |
units (filter (fn [u] | |
(println "bla!!!!!!!!!!!!!!") | |
(utils/trace "find-units" "testing unit:" (:id @u)) | |
(if (and utils/*trace* (pred @u)) | |
(utils/trace "find-units" "testing unit:" (:id @u) "positive!") | |
(utils/trace "find-units" "testing unit:" (:id @u) "negativ!")) | |
(pred @u)) units)] | |
(println "Woggle woggel.") | |
units)) | |
;=> Trace<find-units on>: 2 | |
;=> Woggle woggel. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment