Created
June 25, 2011 23:51
-
-
Save sritchie/1047051 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
user=> (defn test-f "doc" [x] x) | |
#'user/test-f | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f} | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f} | |
user=> (defn test-f "doc" [x] x) | |
#'user/test-f | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f, :file "NO_SOURCE_PATH", :line 6, :arglists ([x]), :doc "doc"} | |
;; Now, change some metadata... docstring! | |
user=> (defn test-f "totally new docstring!" [x] x) | |
#'user/test-f | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f, :file "NO_SOURCE_PATH", :line 9, :arglists ([x]), :doc "doc"} | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f, :file "NO_SOURCE_PATH", :line 9, :arglists ([x]), :doc "doc"} | |
user=> (defn test-f "totally new docstring!" [x] x) | |
#'user/test-f | |
user=> (meta test-f) | |
{:ns #<Namespace user>, :name test-f, :file "NO_SOURCE_PATH", :line 11, :arglists ([x]), :doc "totally new docstring!"} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment