-
-
Save Raynes/577445 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
user> (defn lookup [m & )] (:key m)) | |
; Evaluation aborted. | |
user> (defn lookup [m & )] (:key m) | |
; Evaluation aborted. | |
user> (defn lookup [m & _] (:key m)) | |
#'user/lookup | |
user> (defmulti example lookup) | |
#'user/example | |
user> (defmethod example "blah" [x y z] (str x y z)) | |
#<MultiFn clojure.lang.MultiFn@faa824> | |
user> (example {:key "blah"} 3 5) | |
"{:key \"blah\"}35" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment