xtmdoc-genericfunc-handler   scheme


Defined in:  https://github.com/digego/extempore/tree/v0.8.9/runtime/llvmti.xtm

Implementation

(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))))


Back to Index