Last active
May 2, 2018 14:22
-
-
Save dandorman/24f78ca950d9263033535e32b099eb45 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
{:paths ["."]} |
This file contains hidden or 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
(ns multi) | |
(defmulti foo #(first %&)) | |
(defmethod foo :foo [_] "foo!") | |
(defmethod foo :bar [_] "bar!") | |
(defmethod foo :default [_] "huh?") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment