Created
May 29, 2015 16:20
-
-
Save cemerick/88d4cd3624e363cdca28 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
; compilers are cool | |
(when-let [missing-methods (->> possible-dispatch-values | |
(map #(when-not (get-method multimethod %) %)) | |
(filter identity) | |
seq)] | |
(throw (ex-info "Missing methods for `multimethod`" {:dispatch-vals missing-methods}))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I guess
keep
could replacemap
+filter identity
combo.