Skip to content

Instantly share code, notes, and snippets.

@cemerick
Created May 29, 2015 16:20
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cemerick/88d4cd3624e363cdca28 to your computer and use it in GitHub Desktop.
Save cemerick/88d4cd3624e363cdca28 to your computer and use it in GitHub Desktop.
; 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})))
@ul
Copy link

ul commented May 29, 2015

I guess keep could replace map + filter identity combo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment