(defn
^{:doc "mymax [xs+] gets the maximum value in xs using > "
:test (fn []
(assert (= 42 (mymax 2 42 5 4))))
:user/comment "this is the best fn ever!"}
mymax
([x] x)
([x y] (if (> x y) x y))
([x y & more]
(reduce mymax (mymax x y) more)))
user=> (meta #'mymax)
{:name mymax,
:user/comment "this is the best fn ever!",
:doc "mymax [xs+] gets the maximum value in xs using > ",
:arglists ([x] [x y] [x y & more])
:file "repl-1",
:line 126,
:ns #<Namespace user >,
:test #<user$fn__289 user$fn__289@20f443 >}