Created
September 9, 2016 16:14
-
-
Save tvanhens/3186f2f57fb324b95ed314d1d3441010 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
(defmulti dispatch* (fn [kw args] kw)) | |
(defmethod dispatch* :user/username | |
[_ _] | |
"tvanhens") | |
(defn dispatch | |
"Dispatches a query to its multimethod implementation." | |
[message] | |
(apply dispatch* message)) | |
(dispatch [:user/username {}]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment