Created
September 12, 2019 14:03
-
-
Save the-frey/2fd0d9f33eb535f0727ff3a1dbddd3c5 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 multimethod | |
(fn [opt-one opt-two] opt-one)) | |
(defmethod multimethod :path-one [_ opts] | |
(println (:first-opt opts))) | |
(defmethod multimethod :path-two [_ opts] | |
(println (:second-opt opts))) | |
(multimethod :path-one {:first-opt 1 | |
:second-opt 2}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment