-
-
Save schmee/b60bb0285a3773f3c683 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 if-user [user f] | |
(let [to (@clients user)] | |
(if to | |
(do | |
(f to) | |
true) | |
false))) | |
(defn if-not-user [user f] | |
(let [to (@clients user)] | |
(if-not to | |
(do | |
(f) | |
true) | |
false))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment