Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (def H (derive (make-hierarchy) ::linux ::unix))
- (defmulti home identity :hierarchy H)
- (defmethod home ::unix [os] "/home")
- (home ::unix)
- ;=> "/home"
- (home ::linux)
- ;=> "/home"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement