Let's say I have a protocol like this:
(defprotocol X
(y [this z]))
How do I write documentation targeted only for function y?
The normal way for doing this would be:
(defn y
"Some documentation"
[])
But if I do:
(defprotocol X
(y
"Some documentation"
[this z]))
I get the following exception:
java.lang.IllegalArgumentException: Parameter declaration missing
So how do I add this kind of documentation?