Created
February 1, 2016 04:51
-
-
Save ayato-p/1bad3b0058a1bba7df2e 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
(ns example.another) | |
(defn hello [] (println "Hello")) | |
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 example.main | |
(:require [example.another :as ea])) | |
(ea/hello) | |
(defn good-bye [] (println "Good bye")) | |
(alter-var-root #'ea/hello (constantly good-bye)) | |
(ea/hello) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment