How to write clojure documentation for a single function in a protocol? -


let's have protocol this:

(defprotocol x   (y [this z])) 

how write documentation targeted function y?

the normal way doing be:

(defn y   "some documentation"   []) 

but if do:

(defprotocol x   (y     "some documentation"      [this z])) 

i following exception:

java.lang.illegalargumentexception: parameter declaration missing 

so how add kind of documentation?

(defprotocol x   (y [this z] "some documentation")) 

Comments

Popular posts from this blog

How to check data type in C++? -

javascript - Is getTimezoneOffset() stable during daylight saving transition? -

formula - R: how to pass in a reference to the variable in glm or lm? -