(define xtmdoc-genericfunc-handler
(lambda (name-sym)
;; once we have a way to handle multipe aritys, we should update
;; this function
(list
'(category . "generic closure")
(cons 'name (symbol->string name-sym))
(cons 'args (xtmdoc-get-xtlang-genericfunc-args name-sym))
(cons 'type (impc:ti:simplify-genericfunc-pretty-type
(symbol->string (caddar (assoc-strcmp-all name-sym *impc:ti:genericfunc-cache*)))))
(list 'docstring))))