How to show documentation in Clojure -


i following :

(defn ss [] "kjhhj") (doc ss) 

but "nil" returned. why this?

update:

if :

(defn tt "kjhhj" [] 1) (str (doc tt) ) 

as shown empty string... "doc" output go out or something?

the docstring comes before arguments function. have defined function no docstring returns string.

user> (defn ss [] "kjhhj") #'user/ss user> (ss) "kjhhj" user> (doc ss) ------------------------- user/ss ([])   nil nil  user> (defn tt "kjhhj" []) #'user/tt user> (tt) nil user> (doc tt) ------------------------- user/tt ([])   kjhhj nil user>  

Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -