Created
February 7, 2011 14:17
-
-
Save fogus/814421 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
(def H (derive (make-hierarchy) ::linux ::unix)) | |
(defmulti home identity :hierarchy H) | |
(defmethod home ::unix [os] "/home") | |
(home ::unix) | |
;=> "/home" | |
(home ::linux) | |
;=> "/home" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment