chickadee » contracts » doclist->dispatcher

doclist->dispatcher #!optional doclistprocedure

saves (doclist) in a dispatcher. A typical use is

(define module-name (doclist->dispatcher (doclist)))

which should be called after the last define[-syntax]-with-contract expression to save the automatic documentation in module-name. This procedure can than be called by the module's client with or without a symbol argument.

(module-name [sym])

Without argument the call returns the list of exported symbols, with argument the call returns the textual representaion of the contract of the module's exported symbol sym.